'TEMPS' - Electron-based weather app for nearly every Pup...
Posted: Sun 19 Nov 2017, 21:49
Evening, all.
I can't help thinking I've mentioned this somewhere else.....but I'm hanged if I can find it. So, for anyone who'd like a halfway-decent weather app, which runs from the tray, here is
Temps
I've been running this for around a year, and I'm extremely impressed with it. I think I found it on either MakeUseOf or OMG! Ubuntu (but I can't remember now!)
Homepage is here:-
https://jackd248.github.io/temps/
It's essentially a smartphone app, but has been adapted to run on the Windows, Mac & Linux desktops. After downloading, extract the package, and you'll end with a directory called either temps-linux-ia32 or temps-linux-x64, depending on your architecture.....it's available for both.
Inside this directory, you'll find a binary called, quite simply, 'temps'. Click on this, and after quite a few seconds, it'll launch. I believe it's not only setting itself in /tmp during this time (like AppImages do), but it's also connecting to the OpenWeatherMap API.
Talking of which, you'll need to get yourself an OpenWeatherMap API 'key'. You can use the existing one that comes with it, but after around 4-6 weeks this will quit on you. Just go to
http://openweathermap.org/
.....create a free a/c, and then click on the API tab at the top, and you can create as many API 'keys' as you need. Doesn't take long.
--------------------------------------------
When you've got your 'key', bring the app up with a click on the tray icon, then click on the two horizontal bars in the top-left corner; this will take you to the settings view. You'll need to delete the default location, which is Berlin; enter your location (you can get this from the OpenWeatherMap 'Maps' tab), then delete the API key and enter your own. I find the easiest way to do this is to copy'n'paste the same way Puppy does in urxvt; simply highlight to 'copy', then use the middle mouse button to 'paste'. (If you attempt to right-click for 'Paste' while the app's open, it promptly disappears..!)
When you've got the settings how you want 'em, just click on 'Apply'.
You get a four day forecast, and you can bring up temperatures for different times of the day by clicking on any of the forecast days. This gives you a simple temperature 'line graph'; by moving along this it'll show the rise & fall throughout the day. To go back, just click anywhere on the line.
It changes colour according to the temperature; from greys/dark blues for very cold, to deep orange & red for very hot.....and it has some pretty neat animations for rain/hail/sleet/snow, etc. All very nifty!
(I'm afraid mine are dull gray at the moment, 'cos it's currently bloody cold over here..!!)
---------------------------------------------------------------------------------
You can unpack the directory anywhere you want. /Opt is as good a place as any, or better still, /mnt/home. If you want it to start at boot-time, just sym-link the 'temps' binary into /root/Startup.
Couldn't be simpler!
It creates a directory in /root/.config. If you want to run this in multiple Pups, as I do, the easiest way is to place the Temps directory on a remote partition; sym-link the Temps 'binary' into each Pup's /root/Startup; allow it to create the 'config' folder in /root/.config the first time, then move this to the same location as the remote Temps directory, and sym-link it back into each Pup's /root/.config directory. This preserves your settings, and saves having to set it up again for every Pup.
--------------------------------------------------------------------------------
A word of warning, though; it seems the bods at OpenWeather occasionally decide to edit place names. Mine has been entered as 'King's Lynn, GB' for ages.....until this last week or so, that is. I started getting 'Failure during data fetching', along with loads of squiggles instead of the proper display. Turns out someone had taken it into their head to remove the apostrophe ('), so that it now reads 'Kings Lynn, GB'. That's all it took to chuck a spanner in the works, so.....do be aware of this possibility, boys & girls.
--------------------------------------------------------------------------
Personally, I can thoroughly recommend this one, kiddiwinks. It's one of the neatest weather apps I've seen by a country mile. The only Pups I can't get it to run in are Racy 5.5 and Lucid; it requires a minimum glibc of at least 2.15, I'm afraid.....
Enjoy.
Mike.
I can't help thinking I've mentioned this somewhere else.....but I'm hanged if I can find it. So, for anyone who'd like a halfway-decent weather app, which runs from the tray, here is
Temps
I've been running this for around a year, and I'm extremely impressed with it. I think I found it on either MakeUseOf or OMG! Ubuntu (but I can't remember now!)
Homepage is here:-
https://jackd248.github.io/temps/
It's essentially a smartphone app, but has been adapted to run on the Windows, Mac & Linux desktops. After downloading, extract the package, and you'll end with a directory called either temps-linux-ia32 or temps-linux-x64, depending on your architecture.....it's available for both.
Inside this directory, you'll find a binary called, quite simply, 'temps'. Click on this, and after quite a few seconds, it'll launch. I believe it's not only setting itself in /tmp during this time (like AppImages do), but it's also connecting to the OpenWeatherMap API.
Talking of which, you'll need to get yourself an OpenWeatherMap API 'key'. You can use the existing one that comes with it, but after around 4-6 weeks this will quit on you. Just go to
http://openweathermap.org/
.....create a free a/c, and then click on the API tab at the top, and you can create as many API 'keys' as you need. Doesn't take long.
--------------------------------------------
When you've got your 'key', bring the app up with a click on the tray icon, then click on the two horizontal bars in the top-left corner; this will take you to the settings view. You'll need to delete the default location, which is Berlin; enter your location (you can get this from the OpenWeatherMap 'Maps' tab), then delete the API key and enter your own. I find the easiest way to do this is to copy'n'paste the same way Puppy does in urxvt; simply highlight to 'copy', then use the middle mouse button to 'paste'. (If you attempt to right-click for 'Paste' while the app's open, it promptly disappears..!)
When you've got the settings how you want 'em, just click on 'Apply'.
You get a four day forecast, and you can bring up temperatures for different times of the day by clicking on any of the forecast days. This gives you a simple temperature 'line graph'; by moving along this it'll show the rise & fall throughout the day. To go back, just click anywhere on the line.
It changes colour according to the temperature; from greys/dark blues for very cold, to deep orange & red for very hot.....and it has some pretty neat animations for rain/hail/sleet/snow, etc. All very nifty!
(I'm afraid mine are dull gray at the moment, 'cos it's currently bloody cold over here..!!)
---------------------------------------------------------------------------------
You can unpack the directory anywhere you want. /Opt is as good a place as any, or better still, /mnt/home. If you want it to start at boot-time, just sym-link the 'temps' binary into /root/Startup.
Couldn't be simpler!
It creates a directory in /root/.config. If you want to run this in multiple Pups, as I do, the easiest way is to place the Temps directory on a remote partition; sym-link the Temps 'binary' into each Pup's /root/Startup; allow it to create the 'config' folder in /root/.config the first time, then move this to the same location as the remote Temps directory, and sym-link it back into each Pup's /root/.config directory. This preserves your settings, and saves having to set it up again for every Pup.
--------------------------------------------------------------------------------
A word of warning, though; it seems the bods at OpenWeather occasionally decide to edit place names. Mine has been entered as 'King's Lynn, GB' for ages.....until this last week or so, that is. I started getting 'Failure during data fetching', along with loads of squiggles instead of the proper display. Turns out someone had taken it into their head to remove the apostrophe ('), so that it now reads 'Kings Lynn, GB'. That's all it took to chuck a spanner in the works, so.....do be aware of this possibility, boys & girls.
--------------------------------------------------------------------------
Personally, I can thoroughly recommend this one, kiddiwinks. It's one of the neatest weather apps I've seen by a country mile. The only Pups I can't get it to run in are Racy 5.5 and Lucid; it requires a minimum glibc of at least 2.15, I'm afraid.....
Enjoy.
Mike.