Dear peeps,
Is it possible to get one line text out of a website into a text dummy?
For example:
weeronline.nl has a text forecast "it will stay dry for the next 30 minutes" or "in 20 minutes it will rain till 22.00".
Is this possible?
Thank you
Scrape Weather Forecast (csv/txt) into Text Dummy
Moderator: leecollings
-
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: Scrape Weather Forecast (csv/txt) into Text Dummy
If its possible to seperate it, sure.
It would be easier if there is an api available (don't know/haven't looked for), or when the expected text is easy to recognize by html-codes like id="RainIncoming".
Sent from my D6603 using Tapatalk
It would be easier if there is an api available (don't know/haven't looked for), or when the expected text is easy to recognize by html-codes like id="RainIncoming".
Sent from my D6603 using Tapatalk
-
- Posts: 369
- Joined: Tuesday 31 March 2015 22:06
- Target OS: Linux
- Domoticz version: 2024.3
- Location: east netherlands
- Contact:
Re: Scrape Weather Forecast (csv/txt) into Text Dummy
Okay, cool..stlaha2007 wrote:If its possible to seperate it, sure.
It would be easier if there is an api available (don't know/haven't looked for), or when the expected text is easy to recognize by html-codes like id="RainIncoming".
Sent from my D6603 using Tapatalk
But how to import that "id" into a text dummy, and refresh it every minute then?
Ty
-
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: Scrape Weather Forecast (csv/txt) into Text Dummy
Depends on what you have read for now...
Json-api can be use to push data into devices.
I use this myself to get current electricity/gas/water status and calculate what the meterdisplay should be. And push this into the textsensor.
Sent from my D6603 using Tapatalk
Json-api can be use to push data into devices.
I use this myself to get current electricity/gas/water status and calculate what the meterdisplay should be. And push this into the textsensor.
Sent from my D6603 using Tapatalk
-
- Posts: 369
- Joined: Tuesday 31 March 2015 22:06
- Target OS: Linux
- Domoticz version: 2024.3
- Location: east netherlands
- Contact:
Re: Scrape Weather Forecast (csv/txt) into Text Dummy
Okay, then i need to do some homework i guess 
What do you prefer, make a php frontpage or is it easy to do with json?
I allready can do it in php with including but i have no idea on how to get that value into a dummy

What do you prefer, make a php frontpage or is it easy to do with json?
I allready can do it in php with including but i have no idea on how to get that value into a dummy

Last edited by BarryT on Saturday 05 November 2016 10:04, edited 1 time in total.
-
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: Scrape Weather Forecast (csv/txt) into Text Dummy
Also, on my phone i can't get the page source. So cant tell how the data would be under the hood... WeerOnline does provide some widgets, however not with the rainforecast as in your question.
Searching the www about weeronline api OpenWeatherMap and Buienrader do have Api to interface with, making it easier to extraxt the desired info text.
However... after looking some info about OpenWeatherMap API and Buienradar. Makes me draw this conclusion:
In the next 3 hours there is or isn't rain in millimeters expected. Then display the text Its gonna rain before 13.00/ Its not gonna rain.
Sent from my D6603 using Tapatalk
Searching the www about weeronline api OpenWeatherMap and Buienrader do have Api to interface with, making it easier to extraxt the desired info text.
However... after looking some info about OpenWeatherMap API and Buienradar. Makes me draw this conclusion:
In the next 3 hours there is or isn't rain in millimeters expected. Then display the text Its gonna rain before 13.00/ Its not gonna rain.
Sent from my D6603 using Tapatalk
-
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: RE: Re: Scrape Weather Forecast (csv/txt) into Text Dummy
yes you need to do some homework...BarryT wrote:Okay, then i need to do some homework i guess
What do you prefer, make a php frontpage or is it easy to do with json?
Php can be used any way. Json is just a way to get/put data.
I prefer plain html filled with data the ajax way, like the Dashboard already does. Also usin New Frontpage.html [G3rards version] on dedicated tablet.
Sent from my D6603 using Tapatalk
-
- Posts: 369
- Joined: Tuesday 31 March 2015 22:06
- Target OS: Linux
- Domoticz version: 2024.3
- Location: east netherlands
- Contact:
Re: Scrape Weather Forecast (csv/txt) into Text Dummy
Thanks stlaha!
Who is online
Users browsing this forum: No registered users and 1 guest