Storing and retrieving custom data

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
aray
Posts: 4
Joined: Wednesday 12 August 2020 2:20
Target OS: -
Domoticz version:
Contact:

Storing and retrieving custom data

Post 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?
User avatar
FireWizard
Posts: 1745
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Storing and retrieving custom data

Post by FireWizard »

Hi,

How does the data look like?
Can you provide a little bit more of information?

Regards
aray
Posts: 4
Joined: Wednesday 12 August 2020 2:20
Target OS: -
Domoticz version:
Contact:

Re: Storing and retrieving custom data

Post 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
User avatar
FireWizard
Posts: 1745
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Storing and retrieving custom data

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest