Hi,
Does-it possible to modify the FLM firmware to allow the POST with data on Flukso Server and personal server ? Like this we don't need the use of API or MQTT to get data back.
Thank you
It is an openWRT router that hosts the flukso environment, everything is open source (why should there be a Source tab in the navigation?); thus, everything is possible (as http://mysmartgrid.de also shows)
Use grep on the flukso shell to find the respective configuration - if you don't know what I am writing about, better don't do it.
gebhardm |
Just out of curiosity - you think running an own flukso receiving web server (the POST runs also against the API that just receives a bunch of values from the device) is less complex than handling MQTT messages? What do you expect at the backend? - everything is there; grub the forum...
See for example https://www.flukso.net/content/flm-mqtt-broker-support-web-sockets
fabricemedol |
Hi Gebhardm, thank you for reply.
I found the LUA script with the POST function. I don't know about LUA, can I just modifiy the LUA script and restart the Flukso to make change or I need to compile it ?
I already tested the MQTT service but I would like to centralize water, gaz, electricity, heating system and temperature on my own web server, and so I think it will be easier using the same POST procedure used by Flukso to push data on my DB, without using pooling system.
gebhardm |
Don't alter the lua code as the config is in a config file... /etc/config/flukso
Your second guess I would challenge... See https://github.com/gebhardm/energyhacks/tree/master/AVRNetIOduino/AVRNet... on how easy it is to make an Arduino publish MQTT messages to the FLM's MQTT broker; and see https://github.com/gebhardm/flmdisplay/tree/master/persist how easy it actually it is to persist these messages; and also look around the repo to get an understanding what to do visualizing the stuff... Have you actually understood, what the FLM POSTs?
fabricemedol |
Ok, thanks for informations. I'll read more about MQTT.
It is an openWRT router that hosts the flukso environment, everything is open source (why should there be a Source tab in the navigation?); thus, everything is possible (as http://mysmartgrid.de also shows)
Use
grep
on the flukso shell to find the respective configuration - if you don't know what I am writing about, better don't do it.Just out of curiosity - you think running an own flukso receiving web server (the POST runs also against the API that just receives a bunch of values from the device) is less complex than handling MQTT messages? What do you expect at the backend? - everything is there; grub the forum...
See for example https://www.flukso.net/content/flm-mqtt-broker-support-web-sockets
Hi Gebhardm, thank you for reply.
I found the LUA script with the POST function. I don't know about LUA, can I just modifiy the LUA script and restart the Flukso to make change or I need to compile it ?
I already tested the MQTT service but I would like to centralize water, gaz, electricity, heating system and temperature on my own web server, and so I think it will be easier using the same POST procedure used by Flukso to push data on my DB, without using pooling system.
Don't alter the lua code as the config is in a config file...
/etc/config/flukso
Your second guess I would challenge... See https://github.com/gebhardm/energyhacks/tree/master/AVRNetIOduino/AVRNet... on how easy it is to make an Arduino publish MQTT messages to the FLM's MQTT broker; and see https://github.com/gebhardm/flmdisplay/tree/master/persist how easy it actually it is to persist these messages; and also look around the repo to get an understanding what to do visualizing the stuff... Have you actually understood, what the FLM POSTs?
Ok, thanks for informations. I'll read more about MQTT.