Author Topic: WiFiLogger - Connect your Davis console directly to the Internet via WiFi  (Read 108857 times)

0 Members and 1 Guest are viewing this topic.

Offline davidmc36

  • He who dies with the most toys wins!
  • Forecaster
  • *****
  • Posts: 1245
  • FN25ie61jw
    • MorewoodW34
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #1375 on: September 23, 2019, 06:57:03 AM »
Is there a simple way to put some text data from WFL to Text Overlay function?

https://webcam.io/support/dynamic-text-overlays/

TIA

David

Offline WiFiLogger

  • Forecaster
  • *****
  • Posts: 731
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #1376 on: September 23, 2019, 07:01:13 AM »
Is there a simple way to put some text data from WFL to Text Overlay function?

https://webcam.io/support/dynamic-text-overlays/

TIA

David

At the moment no. We will talk about this. No problem to add it, but I am 2 months late with 2.25 firmware. :(

Offline davidmc36

  • He who dies with the most toys wins!
  • Forecaster
  • *****
  • Posts: 1245
  • FN25ie61jw
    • MorewoodW34
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #1377 on: September 23, 2019, 07:06:32 AM »
Can I push to a text file on website?

Offline WiFiLogger

  • Forecaster
  • *****
  • Posts: 731
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #1378 on: September 23, 2019, 07:13:54 AM »
Can I push to a text file on website?
In version 2.24 you can send as PUT method wflexp.json.
In 2.25 JSON for PHP&MySQL you can send anywhere also as PUT, but this is prepared system to export all data from console to database. PHP&MySQL makes copy of logger and console data in MySQL database. Not very suitable to send one variable.

But this won't be ok for https://webcam.io/support/dynamic-text-overlays/
They want you to send user and pass in HTTP header.
So in WiFiLogger it will have to be another export option, prepared and tested to use with  https://webcam.io.
No technical problem, just time and queue.

Code: [Select]
curl -H 'Content-Type: application/json' \
     -H 'X-Auth-Email: YOUR@EMAIL' \
     -H 'X-Auth-Key: SECRET_KEY' \
     -X PUT -d '{"dynamic_text1":"","dynamic_text2":""}' \
     "https://webcam.io/api/webcams/WEBCAM-ID"

Offline davidmc36

  • He who dies with the most toys wins!
  • Forecaster
  • *****
  • Posts: 1245
  • FN25ie61jw
    • MorewoodW34
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #1379 on: September 23, 2019, 07:34:22 AM »
I was thinking of just export to text file elsewhere and use the fetch feature of camera site.

Put text file of data somewhere, treat it, and pluck it?

Can I utilize RPI?
« Last Edit: September 23, 2019, 07:39:20 AM by davidmc36 »

Offline WiFiLogger

  • Forecaster
  • *****
  • Posts: 731
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #1380 on: September 23, 2019, 08:13:24 AM »
I was thinking of just export to text file elsewhere and use the fetch feature of camera site.

Put text file of data somewhere, treat it, and pluck it?

Can I utilize RPI?

There is no problem to export data from WiFiLogger as JSONs via HTTP PUT, or MQTT.
You have two options:
1 old - wflexp.json
2 new - PHP&MySQL JSONs set.
You can turn on export to own PHP script which will take JSON file parse it, take it what you need and send this data in other shape to other web site.

I will provide PHP to put data to MySQL, but same JSONs can be change in PHP to any other format.
On the other hand data from MySQL can be exported to other web site as well. I have no scripts to read data from MySQL yet, but there is no technical issue with that.

About Raspberry Pi. If you have WWW hosting with PHP, then there is no reason to add Raspberry Pi to this system.
Put own PHP to your WWW hosting and setup WiFiLogger to send wflexp.json there.

I can provide you very simple PHP example how to save JSON to hard drive.
Also I can send you current PHP&MySQL files.

Offline davidmc36

  • He who dies with the most toys wins!
  • Forecaster
  • *****
  • Posts: 1245
  • FN25ie61jw
    • MorewoodW34
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #1381 on: September 23, 2019, 10:18:10 AM »
Thank you for the reply.

I need to attain more understanding of what these scripts etc do to see if I want to pursue some effort.

Offline WiFiLogger

  • Forecaster
  • *****
  • Posts: 731
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #1382 on: October 14, 2019, 03:38:21 AM »
This thread reached its lifetime. I am closing it.

 

anything