Page 1 of 1
Storing and retrieving custom data
Posted: Wednesday 12 August 2020 2:45
by aray
I have a script that fetches json data from an external service and I want to push it to my domoticz, in order to get this data over wifi on my device using domoticz API.
So I'm wondering if there is a way to store arbitrary data as text on the server?
Re: Storing and retrieving custom data
Posted: Wednesday 12 August 2020 7:13
by FireWizard
Hi,
How does the data look like?
Can you provide a little bit more of information?
Regards
Re: Storing and retrieving custom data
Posted: Wednesday 12 August 2020 14:30
by aray
I would like to be able to store any arbitrary text data. In my case, I need to save a custom json containing events from multiple google calendars. For his purpose. I currently started an additional Flask server on my raspberry, but it would be better if I had only domoticz.
Another option is to redirect domoticz API to my python script and return this json directly without storing
Re: Storing and retrieving custom data
Posted: Wednesday 12 August 2020 15:50
by FireWizard
Hi
Okay,
Have you already considered to use Node Red, see:
https://flows.nodered.org/node/node-red-node-google.
You can push this to Domoticz, with either http or mqtt.
Regards