cloudy cloudy

Author Topic: Integrating Customtext files in console version of Weather Display?  (Read 878 times)

0 Members and 1 Guest are viewing this topic.

Offline EastFrisian33

  • Posts: 73
  • Bremerhaven, NW Germany
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 59.0
Hi,

Before i switched to my present raspberry pi configuration, i'd ran Weather Display on a laptop with a Windows OS.
There i also used a template from a local weather network "Neuwetter" which sent my weather data to the network every five minutes.
The template is a "customtext" file which could be easily integrated into the Desktop version of Weather Display. The file is then being
renamed "customtextout" and will be automatically updated by the chosen interval (in my case five minutes).

Now using the console version i'm really stuck in the process of integrating the template file into Weather Display.
Is this possible at all and if so how? 

Thanks and best regards

Georg

Offline Weather Display

  • Posts: 87,023
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 65.0.3325.181
    • Weather Display
Re: Integrating Customtext files in console version of Weather Display?
« Reply #1 on: April 12, 2018, 04:42:05 AM »
try
in the config.txt file
create custom file=Y
use this filename instead of wx.html=customtextout.txt

and set wxlocal.htm as the contents in customtext.txt

Offline EastFrisian33

  • Posts: 73
  • Bremerhaven, NW Germany
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 59.0
Re: Integrating Customtext files in console version of Weather Display?
« Reply #2 on: April 12, 2018, 04:02:44 PM »
Thanks a lot Brian, that works.

However there still seems to be a problem with the present console tags, some don't work with the template, e.g. i would need to have temperatures without the "C"
like "tempinmetric", "max / mintempmetric" for maximum and minimum temps or rainfall without mm like "rainlasthourmm" . Can you add those tags in the next raspberry pi version?

I'm using raspberry pi 3 version 17.1 at the moment.

Best regards

Georg

Offline Weather Display

  • Posts: 87,023
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 65.0.3325.181
    • Weather Display
Re: Integrating Customtext files in console version of Weather Display?
« Reply #3 on: April 12, 2018, 07:36:42 PM »
what custom tag is causing the problem?

Offline EastFrisian33

  • Posts: 73
  • Bremerhaven, NW Germany
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 59.0
Re: Integrating Customtext files in console version of Weather Display?
« Reply #4 on: April 12, 2018, 07:53:54 PM »
Hi Brian,

The problematic tags in the template are "%tempinmetric%" for current temperature, %maxtempmetric% for daily maximum temperature, %mintempmetric% for daily minimum temperature, "%avspeedinkmh%" for average windspeed in km/h, "%gustspeedinkmh%" for current gust speed in km/h and "%dayrn%" for the rainfall for today. The only tags currently working are humidity %hum% and barometer %baro%.
Since the weather network using the template is a local amateur weather network in Northern Germany no non-metric values are needed here anyway, only the bare numbers. ;-)

The template was actually written for the Desktop version of Weather Display and it works with that using those tags (i've used that for years without problems) but it does not fully work with the console version of Weather Display.

 
« Last Edit: April 12, 2018, 08:24:06 PM by EastFrisian33 »

Offline Weather Display

  • Posts: 87,023
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 65.0.3325.181
    • Weather Display
Re: Integrating Customtext files in console version of Weather Display?
« Reply #5 on: April 13, 2018, 01:25:33 AM »
those tags are not supported
but I could add support

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 28,120
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 65.0.3325.181
Re: Integrating Customtext files in console version of Weather Display?
« Reply #6 on: April 13, 2018, 01:30:00 AM »
Does it have the "no units in tags" option? That would do the job too.

Offline Weather Display

  • Posts: 87,023
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 65.0.3325.181
    • Weather Display
Re: Integrating Customtext files in console version of Weather Display?
« Reply #7 on: April 13, 2018, 03:04:31 AM »
yeah
%temp%
will do
just make sure to not have set to add units
include units tags=N
same for %maxtemp%, %mintemp%

also use
%avgspd%,%gstspd%
and make sure you have the needed units

Offline EastFrisian33

  • Posts: 73
  • Bremerhaven, NW Germany
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 59.0
Re: Integrating Customtext files in console version of Weather Display?
« Reply #8 on: April 13, 2018, 10:55:33 PM »
Hi,

Thanks a lot for your help.

The data is now shown when i set the template file to include units tags=N
Now only one tag is still missing: "%totalrainlast24hours%". I couldn't find a tag for the last 24hours of rainfall in the taglist, so can you add support for such a tag?

Best regards

Georg

Offline Weather Display

  • Posts: 87,023
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 65.0.3325.181
    • Weather Display
Re: Integrating Customtext files in console version of Weather Display?
« Reply #9 on: April 14, 2018, 12:56:57 AM »
yup, I will do that and let you know

Offline Weather Display

  • Posts: 87,023
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 65.0.3325.181
    • Weather Display
Re: Integrating Customtext files in console version of Weather Display?
« Reply #10 on: April 14, 2018, 01:37:26 AM »
try a new update re that custom tag