SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v9 Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV v9 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 9 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 9 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-20-2017, 12:27 PM
peternm22 peternm22 is offline
Sage Expert
 
Join Date: Jan 2005
Posts: 709
Weather Keeps Switching to Fahrenheit In Open Source Version

I noticed an odd issue since upgrading to version 9 (server is Windows 7 64 bit).

The weather units keep switching from metric to English. This is only happening on my HD300. SageTV client running on Windows keeps the correct units.

It appears to happen every time the SageTV service is restarted. Has anyone else seen this?

I did a search and found a thread from a few years ago with people reporting this is happening, but it looks like it was just related to running Gemstone. Although I do have Gemstone installed (and up to date), I use the default STV in SageTV.

Any ideas?
Reply With Quote
  #2  
Old 02-21-2017, 08:08 PM
peternm22 peternm22 is offline
Sage Expert
 
Join Date: Jan 2005
Posts: 709
I did a bit more research. It looks like the weather units are stored in weather_underground_cache.properties.

Fahrenheit is set using units=s, and Celsius is set using units=m.

If I change the units via the SageTV UI, and setting is changed correctly in the file to units=m. However, whenever the SageTV service is restarted, the value is changed to units=s.

Anyone know how to fix it?
Reply With Quote
  #3  
Old 02-21-2017, 08:50 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
My guess is that you need that setting on the server in the sagetv.properties for it to stick.

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #4  
Old 02-21-2017, 09:02 PM
peternm22 peternm22 is offline
Sage Expert
 
Join Date: Jan 2005
Posts: 709
Any idea how I would format the property? In Sage.properties, most of the settings are long strings like something/weather/units=m. I'm guessing just sticking units=m in Sagetv.properties won't work without some type of path in front of it.

I did find a units setting in the sagetv.properties setting, but it was related to Phoenix weather. I changed this setting to 'm', but it doesn't seem to affect the main weather settings.
Reply With Quote
  #5  
Old 02-21-2017, 09:10 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
I do not know. If you can run the client on the server or another pc and change that setting then you can copy the setting from that properties file.

But this seems odd as i am sure others have changed this before. almost seems like you do not have permission to update the properties file through sage. Do you run as a service? if so , do you use a specific account for the service as you likely need to.

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #6  
Old 02-21-2017, 09:22 PM
peternm22 peternm22 is offline
Sage Expert
 
Join Date: Jan 2005
Posts: 709
Yes, I do run as a service. I run it as a particular user (I forget the reason why, might have been something to do with network settings or the USB-UIRT, it's been years since I set it up this way).

This setting was working perfectly fine for years until I upgraded from version 7 to version 9.

All of the settings for weather seem to be stored in weather_underground_cache.properties, not in sage.properties. The units setting in weather_underground_cache.properties does indeed get changed when I change it via SageTV, but as soon as the service is stopped and started again (from either a reboot, plugin update, etc), it is reverted to the prior setting.
Reply With Quote
  #7  
Old 02-24-2017, 10:30 PM
peternm22 peternm22 is offline
Sage Expert
 
Join Date: Jan 2005
Posts: 709
I did some more testing and I'm starting to narrow down the cause.

The units setting isn't getting reset when the service is restarted. It gets reset whenever my HD300 is turned on.

If I set the units=m, restart the service, and launch a Windows SageTV client... the weather units stay metric.

As soon as my HD300 turns on though, it changes the units setting in weather_underground_cache.properties back to "s".

I looked through the .properties file for the extender but I couldn't find anything helpful. I also search the sagetv_0.log file for any mention of the word "units", and nothing showed up either.

I suspect there is something being loaded (a plugin/STVI) on the extender that is causing this. Any easy way to narrow it down?

Edit: I deleted the properties file for the extender (and it's backup) to reset all the settings on the extender. The HD300 still resets the weather units setting each time it is started.

Last edited by peternm22; 02-24-2017 at 10:37 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SageTV Open Source Version? SidKnee SageTV United Kingdom 8 06-14-2016 08:58 AM
SageTV is Open Source!!! Narflex Announcements 1 01-12-2016 10:36 AM
Odd Weather Info Issue (not sure if it's related to the Open Source version or not) stuckless SageTV Github Development 2 10-08-2015 04:50 AM
Should I use the open source version now? gacevich SageTV Github Development 9 08-17-2015 01:23 PM
Open Source Movie mikejaner The SageTV Community 1 10-14-2008 08:13 AM


All times are GMT -6. The time now is 08:05 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.