<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Json on ads' corner</title><link>https://andreas.scherbaum.la/tags/json/</link><description>Recent content in Json on ads' corner</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 11 Oct 2024 04:36:00 +0200</lastBuildDate><atom:link href="https://andreas.scherbaum.la/tags/json/index.xml" rel="self" type="application/rss+xml"/><item><title>PostgreSQL Berlin October 2024 Meetup</title><link>https://andreas.scherbaum.la/post/2024-10-11_postgresql-berlin-october-2024-meetup/</link><pubDate>Fri, 11 Oct 2024 04:36:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2024-10-11_postgresql-berlin-october-2024-meetup/</guid><description>&lt;p&gt;On October 9th, 2024, we had the &lt;em&gt;PostgreSQL&lt;/em&gt; October Meetup in &lt;em&gt;Berlin&lt;/em&gt;. &lt;em&gt;Amazon&lt;/em&gt; hosted it, and sponsored the Meetup in their office in the &lt;em&gt;Brüderstraße&lt;/em&gt;, in &lt;em&gt;Berlin Mitte&lt;/em&gt;.&lt;/p&gt;</description></item><item><title>Dynamic content in static websites in Hugo</title><link>https://andreas.scherbaum.la/post/2023-03-02_dynamic-content-in-static-websites-in-hugo/</link><pubDate>Thu, 02 Mar 2023 18:21:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2023-03-02_dynamic-content-in-static-websites-in-hugo/</guid><description>&lt;p&gt;With people &lt;a href="https://andreas.scherbaum.la/post/2022-11-21_migration-from-twitter-to-mastodon/"&gt;moving away from &lt;em&gt;Twitter&lt;/em&gt;&lt;/a&gt;, mostly to &lt;em&gt;&lt;a href="https://joinmastodon.org/"&gt;Mastodon&lt;/a&gt;&lt;/em&gt;, discovering the new accounts became a problem.&lt;/p&gt;&#10;&lt;p&gt;For people in the &lt;em&gt;PostgreSQL&lt;/em&gt; community I created a &lt;a href="https://postgresql.life/social/"&gt;website&lt;/a&gt; which lists different social media accounts. This website is part of the &amp;ldquo;&lt;a href="https://postgresql.life/"&gt;PostgreSQL Person of the Week&lt;/a&gt;&amp;rdquo; interview project, however the data source is dynamic, and stored in a different repository. This allows me to keep the repository for the website private, but publish the data for the social media links - this data is public anyway. The interview repository is private, because who wants to see upcoming interviews anyway? ;-)&lt;/p&gt;</description></item><item><title>Relational and Non-relational Data: PGSQL Phriday #005</title><link>https://andreas.scherbaum.la/post/2023-01-29_relational-and-non-relational-data-pgsql-phriday-005/</link><pubDate>Sun, 29 Jan 2023 18:33:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2023-01-29_relational-and-non-relational-data-pgsql-phriday-005/</guid><description>&lt;p&gt;&lt;a href="https://blog.rustprooflabs.com/"&gt;Ryan Lambert&lt;/a&gt; asks in &lt;a href="https://blog.rustprooflabs.com/2023/01/pgsqlphriday-005--postgres-relational-and-otherwise"&gt;this month&amp;rsquo;s PGSQL Phriday&lt;/a&gt;:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;What non-relational data do you store in &lt;em&gt;Postgres&lt;/em&gt; and how do you use it?&lt;/li&gt;&#10;&lt;li&gt;Have you attempted non-relational uses of &lt;em&gt;Postgres&lt;/em&gt; that did not work well? What was the problem?&lt;/li&gt;&#10;&lt;li&gt;What are the biggest challenges with your data, whatever its structure?&lt;/li&gt;&#10;&lt;li&gt;Bonus: How do you define non-relational data?&lt;/li&gt;&#10;&lt;/ul&gt;</description></item><item><title>Ansible: Lookup group name by gid</title><link>https://andreas.scherbaum.la/post/2022-06-12_ansible-lookup-group-name-by-gid/</link><pubDate>Sun, 12 Jun 2022 17:16:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2022-06-12_ansible-lookup-group-name-by-gid/</guid><description>&lt;p&gt;For one of my &lt;em&gt;Ansible&lt;/em&gt; Playbooks I need the group name associated with a specific group id. Turns out there is not much documentation online how to do this, and I had to test it out.&lt;/p&gt;</description></item><item><title>Read a JSON text into a variable in Ansible without parsing it</title><link>https://andreas.scherbaum.la/post/2022-03-20_read-a-json-text-into-a-variable-in-ansible-without-parsing-it/</link><pubDate>Sun, 20 Mar 2022 00:08:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2022-03-20_read-a-json-text-into-a-variable-in-ansible-without-parsing-it/</guid><description>&lt;p&gt;For one project I need to insert the content of a local file into another file on the remote system, and the first file happens to be &lt;em&gt;JSON&lt;/em&gt;. The &lt;em&gt;JSON&lt;/em&gt; file is in compact format (&lt;code&gt;jq --compact-output&lt;/code&gt;) and is supposed to stay this way. When &lt;em&gt;Ansible&lt;/em&gt; reads the content of the file, it determines that the content is &lt;em&gt;JSON&lt;/em&gt;, and parses the content into the variable - and along the way is uncompressing the format. Not what I want.&lt;/p&gt;&#10;&lt;p&gt;To keep the file content as string, it is necessary to tell &lt;em&gt;Ansible&lt;/em&gt; to handle this as string.&lt;/p&gt;</description></item><item><title>Huginn: Monitor changes in websites</title><link>https://andreas.scherbaum.la/post/2020-11-22_huginn-monitor-changes-in-websites/</link><pubDate>Sun, 22 Nov 2020 11:11:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-11-22_huginn-monitor-changes-in-websites/</guid><description>&lt;p&gt;The &lt;a href="https://github.com/huginn/huginn"&gt;Huginn&lt;/a&gt; software is not only good for monitoring Twitter feeds, it can also be used to monitor websites for changes.&lt;/p&gt;</description></item><item><title>Search objects based on a specific criteria (Key:name:etymology) in JOSM</title><link>https://andreas.scherbaum.la/post/2020-11-12_search-objects-based-on-a-specific-criteria-keynameetymology-in-josm/</link><pubDate>Thu, 12 Nov 2020 23:06:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-11-12_search-objects-based-on-a-specific-criteria-keynameetymology-in-josm/</guid><description>&lt;p&gt;This posting is mainly a reference for myself, because I was looking for this specific issue a couple times.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.openstreetmap.org/"&gt;OpenStreetMap&lt;/a&gt; (&lt;em&gt;OSM&lt;/em&gt;) is a map of the world, created by anyone who wants to contribute. It so happens that data might be missing (just go and add it, if you see that something is not on the map). It also happens that someone adds too much data.&lt;/p&gt;</description></item><item><title>Remove duplicates from Huginn event stream</title><link>https://andreas.scherbaum.la/post/2020-10-21_remove-duplicates-from-huginn-event-stream/</link><pubDate>Wed, 21 Oct 2020 17:25:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-10-21_remove-duplicates-from-huginn-event-stream/</guid><description>&lt;p&gt;One of the things I&amp;rsquo;m using &lt;a href="https://github.com/huginn/huginn"&gt;Huginn&lt;/a&gt; for is monitoring for &lt;em&gt;Twitter&lt;/em&gt; keywords. Some of them might appear in pairs, as example people like to tag Tweets about &lt;a href="https://www.postgresql.org/"&gt;PostgreSQL&lt;/a&gt; with both &lt;a href="https://twitter.com/search?q=%23postgresql&amp;amp;src=typed_query&amp;amp;f=live"&gt;#postgresql&lt;/a&gt; and &lt;a href="https://twitter.com/search?q=%23postgres&amp;amp;src=typed_query&amp;amp;f=live"&gt;#postgres&lt;/a&gt;. When I was using &lt;a href="https://ifttt.com/"&gt;IFTTT&lt;/a&gt; this always created two emails, one for each hashtag. With &lt;em&gt;Huginn&lt;/em&gt; I can deduplicate the events, and only notify about the first occurrence.&lt;/p&gt;</description></item><item><title>Monitor software version changes with Huginn</title><link>https://andreas.scherbaum.la/post/2020-10-18_monitor-software-version-changes-with-huginn/</link><pubDate>Sun, 18 Oct 2020 02:39:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-10-18_monitor-software-version-changes-with-huginn/</guid><description>&lt;p&gt;&lt;a href="https://github.com/huginn/huginn"&gt;Huginn&lt;/a&gt; is a great piece of software, but the &lt;a href="https://github.com/huginn/huginn/wiki"&gt;documentation&lt;/a&gt; is &amp;hellip; a bit sparse. Especially when it comes to details of the agents. I&amp;rsquo;m going to blog about a couple more more examples in the future.&lt;/p&gt;&#10;&lt;p&gt;For another project I&amp;rsquo;m using &lt;a href="https://leafletjs.com/"&gt;Leaflet&lt;/a&gt;, a JavaScript library for rendering maps in a browser. New versions are released occasionally, and I want to know when it&amp;rsquo;s time to update the project website. &lt;em&gt;Huginn&lt;/em&gt; can do that.&lt;/p&gt;</description></item><item><title>Huginn: Filter Retweets</title><link>https://andreas.scherbaum.la/post/2020-10-11_huginn-filter-retweets/</link><pubDate>Sun, 11 Oct 2020 23:23:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-10-11_huginn-filter-retweets/</guid><description>&lt;p&gt;A while ago I started using &lt;a href="https://en.wikipedia.org/wiki/Hugin_(software)"&gt;Huginn&lt;/a&gt;, as a replacement for &lt;em&gt;IFTTT&lt;/em&gt;. That&amp;rsquo;s going quite well. &lt;em&gt;Huginn&lt;/em&gt; offers more features, integrations, and especially your chains (scenarios) can be as complex as you wish. &lt;em&gt;IFTTT&lt;/em&gt; is quite limited in this area.&lt;/p&gt;&#10;&lt;p&gt;I use the &lt;a href="https://huginnio.herokuapp.com/agents#TwitterSearchAgent"&gt;Twitter integration&lt;/a&gt; to find certain Tweets. Now this does not only find &lt;a href="https://en.wikipedia.org/wiki/Twitter#Tweets"&gt;native Tweets&lt;/a&gt;, but also finds every &lt;a href="https://en.wikipedia.org/wiki/Twitter#Hashtags,_usernames,_retweets_and_replies"&gt;Retweet&lt;/a&gt; made for a native Tweet. Obviously I am not interested in duplicate content.&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;Huginn&lt;/em&gt; offers a way to filter out Retweets.&lt;/p&gt;</description></item><item><title>Google Summer of Code 2020 - Intermediate status update</title><link>https://andreas.scherbaum.la/post/2020-08-21_google-summer-of-code-2020-intermediate-status-update/</link><pubDate>Fri, 21 Aug 2020 22:43:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-08-21_google-summer-of-code-2020-intermediate-status-update/</guid><description>&lt;p&gt;The three &lt;a href="https://www.postgresql.org/"&gt;PostgreSQL&lt;/a&gt; projects for this year’s &lt;a href="https://summerofcode.withgoogle.com/"&gt;Google Summer of Code&lt;/a&gt; are on track, and &lt;a href="https://andreas.scherbaum.la/post/2020-06-18_google-summer-of-code-2020-started/"&gt;making good progress&lt;/a&gt;. All projects expect to finish on time.&lt;/p&gt;&#10;&lt;h2 id="performance-farm"&gt;Performance Farm&lt;/h2&gt;&#10;&lt;p&gt;The data gathering for performance farm members is completed, as well as the new implementation for the &lt;em&gt;JSON&lt;/em&gt; data transfer. The project iteratively updated it’s goals, and adjusted for newly identified UI issues.&lt;/p&gt;&#10;&lt;p&gt;Current work centers around making the website more pretty and useful, as well as reducing the number of used &lt;em&gt;JavaScript&lt;/em&gt; libraries. The next step is presenting the work to the &lt;em&gt;PostgreSQL&lt;/em&gt; Community for broader feedback.&lt;/p&gt;</description></item><item><title>openHAB and Tankerkönig gas prices + Telegram integration</title><link>https://andreas.scherbaum.la/post/2020-06-27_openhab-and-tankerkoenig-gas-prices-+-telegram-integration/</link><pubDate>Sat, 27 Jun 2020 01:03:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-27_openhab-and-tankerkoenig-gas-prices-+-telegram-integration/</guid><description>&lt;p&gt;In &lt;em&gt;Germany&lt;/em&gt;, every gas station must report gas prices online, to the &lt;a href="https://www.bundeskartellamt.de/DE/Wirtschaftsbereiche/Mineral%C3%B6l/MTS-Kraftstoffe/mtskraftstoffe_node.html"&gt;Markttransparenzstelle für Kraftstoffe&lt;/a&gt;. Businesses and users can then fetch this data and provide services. One of these companies is &lt;a href="https://www.tankerkoenig.de/"&gt;Tankerkönig&lt;/a&gt;, and there&amp;rsquo;s also a &lt;a href="https://www.openhab.org/addons/bindings/tankerkoenig/"&gt;Binding for openHAB&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;If you are interested in gas prices for certain gas stations, you need to &lt;a href="https://creativecommons.tankerkoenig.de/"&gt;sign up for a (free) API key&lt;/a&gt;, and figure out the IDs of the gas stations. For that &lt;a href="https://creativecommons.tankerkoenig.de/TankstellenFinder/index.html"&gt;go to this website&lt;/a&gt;, Position the blue marker on the location you are interested in, and then click on all the gas stations you want to include. Finally click on &lt;code&gt;Tankstellen übernehmen&lt;/code&gt; - this will open a &lt;em&gt;JSON&lt;/em&gt; with the data, from there extract the &lt;code&gt;id&lt;/code&gt; (and possibly the other data as well).&lt;/p&gt;</description></item><item><title>Monitor additional details in Telegraf with the "Exec" input filter</title><link>https://andreas.scherbaum.la/post/2020-06-25_monitor-additional-details-in-telegraf-with-the-exec-input-filter/</link><pubDate>Thu, 25 Jun 2020 01:14:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-25_monitor-additional-details-in-telegraf-with-the-exec-input-filter/</guid><description>&lt;p&gt;After &lt;a href="https://andreas.scherbaum.la/post/2020-06-24_install-telegraf-using-ansible/"&gt;installing Telegraf&lt;/a&gt; and hooking up everything into &lt;a href="https://www.influxdata.com/products/influxdb-overview/"&gt;InfluxDB&lt;/a&gt;, I was missing the status of my backups. Every system here creates encrypted backups every night, and stores them on a central NAS, and off-site. But I want to know statistics about the backups, and see if something is not working.&lt;/p&gt;&#10;&lt;p&gt;I&amp;rsquo;m using &lt;a href="https://restic.net/"&gt;Restic&lt;/a&gt; for the backups (will blog about this another time). However &lt;em&gt;Telegraf&lt;/em&gt; does not support &lt;em&gt;Restic&lt;/em&gt; directly, I need a few workarounds. This blog post however is not directly about monitoring the backups, but about how to write your own plugin for &lt;em&gt;Telegraf&lt;/em&gt;.&lt;/p&gt;</description></item><item><title>Local cachíng of Ansible Facts</title><link>https://andreas.scherbaum.la/post/2020-03-29_local-caching-of-ansible-facts/</link><pubDate>Sun, 29 Mar 2020 19:39:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-03-29_local-caching-of-ansible-facts/</guid><description>&lt;p&gt;Every time &lt;em&gt;Ansible&lt;/em&gt; runs a Playbook, the first step (by default) is gathering facts about the target system:&lt;/p&gt;</description></item><item><title>Install OpenWeatherMap in openHAB, using Ansible</title><link>https://andreas.scherbaum.la/post/2019-01-24_install-openweathermap-in-openhab-using-ansible/</link><pubDate>Thu, 24 Jan 2019 21:00:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2019-01-24_install-openweathermap-in-openhab-using-ansible/</guid><description>&lt;p&gt;Next item on my home automation todo list: weather, and forecast. No good system without that data!&lt;/p&gt;&#10;&lt;p&gt;After exploring the options which &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; supports, I settled for &lt;a href="https://openweathermap.org/"&gt;OpenWeatherMap&lt;/a&gt;. Note: you need an account with &lt;em&gt;OWM&lt;/em&gt;, the basic functionality is free, the paid options give you more and better forecast.&lt;/p&gt;</description></item><item><title>Configure a FRITZ!Box in openHAB, using Ansible</title><link>https://andreas.scherbaum.la/post/2018-12-12_configure-a-fritz-box-in-openhab-using-ansible/</link><pubDate>Wed, 12 Dec 2018 22:03:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2018-12-12_configure-a-fritz-box-in-openhab-using-ansible/</guid><description>&lt;p&gt;A while ago I posted about &lt;a href="https://andreas.scherbaum.la/post/2018-07-04_add-a-fritz-box-to-openhab-using-ansible/"&gt;adding a Fritz!Box to openHAB, using Ansible&lt;/a&gt;. Now I had to use the Playbook to install another Raspberry, and found that some parts are missing in my posting. Mostly at the end, when it comes to configuring the &lt;a href="https://en.avm.de/products/fritzbox/"&gt;Fritz!Box&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Therefore let&amp;rsquo;s run over all the steps again, and make sure that everything is covered.&lt;/p&gt;</description></item><item><title>Update openHAB Things configuration using Ansible</title><link>https://andreas.scherbaum.la/post/2018-07-03_update-openhab-things-configuration-using-ansible/</link><pubDate>Tue, 03 Jul 2018 15:16:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-07-03_update-openhab-things-configuration-using-ansible/</guid><description>&lt;p&gt;In my &lt;a href="https://andreas.scherbaum.la/post/2018-07-01_install-openhab2-bindings-using-ansible/"&gt;earlier&lt;/a&gt; &lt;a href="https://andreas.scherbaum.la/post/2018-07-02_auto-approve-and-link-certain-inbox-items-in-openhab-using-ansible/"&gt;openHAB&lt;/a&gt; &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;blog posts&lt;/a&gt; I automated the installation of extensions and linking of &lt;em&gt;Channels&lt;/em&gt; to &lt;em&gt;Items&lt;/em&gt;. Another problem I&amp;rsquo;m facing is the configuration of items. Again, that&amp;rsquo;s very easy in the UI - if you are willing to click through the list of &lt;em&gt;Items&lt;/em&gt;, and manually do all the steps.&lt;/p&gt;&#10;&lt;p&gt;Among other things I&amp;rsquo;m using the &lt;code&gt;binding-yahooweather&lt;/code&gt; and the &lt;code&gt;binding-ipp&lt;/code&gt; bindings, and the first one needs configuration before it can work properly. For the second one, it righly discovered a laser printer in our network, but occasionally when &lt;em&gt;openHAB&lt;/em&gt; requests the status information, this spins up an internal disk in the printer. Therefore it is feasible to increase the time between checks - it&amp;rsquo;s just the number of outstanding print jobs anyway. Doesn&amp;rsquo;t matter if someone reacts 5 or 15 minutes later, if the problem was not discovered instantly.&lt;/p&gt;</description></item><item><title>Auto-approve and link certain inbox items in openHAB using Ansible</title><link>https://andreas.scherbaum.la/post/2018-07-02_auto-approve-and-link-certain-inbox-items-in-openhab-using-ansible/</link><pubDate>Mon, 02 Jul 2018 14:41:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-07-02_auto-approve-and-link-certain-inbox-items-in-openhab-using-ansible/</guid><description>&lt;p&gt;&lt;a href="https://andreas.scherbaum.la/post/2018-07-01_install-openhab2-bindings-using-ansible/"&gt;After starting to look&lt;/a&gt; into &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt;, and automate the installation with &lt;a href="https://www.ansible.com/"&gt;Ansible&lt;/a&gt;, I discovered that there is an API, but the main focus of the documentation and examples clearly is on using the UI and don&amp;rsquo;t automate the installation. It takes some time to figure out the details. In my last blog post I automated the installation of extensions/bindings, and ended with running a rediscover scan.&lt;/p&gt;&#10;&lt;p&gt;Now it&amp;rsquo;s time to see if there are new items in the inbox, and possibly auto-approve and link them in &lt;em&gt;Ansible&lt;/em&gt;.&lt;/p&gt;</description></item><item><title>Install openHAB2 bindings using Ansible</title><link>https://andreas.scherbaum.la/post/2018-07-01_install-openhab2-bindings-using-ansible/</link><pubDate>Sun, 01 Jul 2018 11:33:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-07-01_install-openhab2-bindings-using-ansible/</guid><description>&lt;p&gt;Recently I started looking into Home Automation, using a &lt;a href="https://en.wikipedia.org/wiki/Raspberry_Pi"&gt;Raspberry Pi&lt;/a&gt; and the &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; as platform. The website provides ready-to-go images based on &lt;em&gt;Debian&lt;/em&gt;, named &lt;a href="https://docs.openhab.org/installation/openhabian.html"&gt;openHABian&lt;/a&gt;. Me being me, I decided to install the image, let it boot up for the first time, and then take it from there using &lt;a href="https://www.ansible.com/"&gt;Ansible&lt;/a&gt; as automation tool. That&amp;rsquo;s a bit more effort in the beginning, but ensures that I can always just wipe the SDcard, and start over from the beginning. Especially useful if I screw up at some point during testing.&lt;/p&gt;</description></item></channel></rss>