fadeouter / argosweather Goto Github PK
View Code? Open in Web Editor NEWWeather script for Argos GNOME Shell extension, that works on DarkSky API.
License: GNU General Public License v3.0
Weather script for Argos GNOME Shell extension, that works on DarkSky API.
License: GNU General Public License v3.0
Don't know why, but it is nor showing up in my top bar. Running python ~/.config/argos/weather.15m.py
Results in:
| imageHeight=20 image=PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMzUuNDY2NjcgMTM1LjQ2NjY3IiBoZWlnaHQ9IjgwIiB3aWR0aD0iODAiPjxnPjxwYXRoIGQ9Ik00OS45OTkgNTQuMTI0Yy0xMy43NS0xMC4yODItMzAuODMgMi4yOTMtMjQuMTc4IDE2LjU5OC0yNS45ODYtMi4xMDUtMjYuMjI0IDMyLjAwNi01LjA0NCAzNC42MzEgNi4zMS0uMDM5IDg5LjI3Mi0uNTEgODkuMjcyLS41MSAyNi40MS4wNzcgMjcuNTEyLTQyLjc5NS0yLjkxOS00Mi4zNCA4LjY2NC0zNi43MTYtNTUuNTQ1LTQ1Ljg0LTU3LjEzMS04LjM4eiIgZmlsbD0iI2JiYmJiYiIvPjxwYXRoIGQ9Ik0yNS4xNyAxMDAuMjc4Yy0xNC4xMjUuNTI2LTE3LjIxNy00LjEwMi0xOS4wOTktOC4yMTQgMS41NDQgNi44ODcgNy4wNTMgMTIuMzQgMTQuNzA2IDEzLjI4OCA2LjMxLS4wMzkgODkuMjcyLS41MSA4OS4yNzItLjUxIDE1LjIyNi4wMzggMjIuMDQtMTQuMTg4IDE5LjI0OS0yNi4xNjEtLjA1IDUuNzg5LTMuMTAzIDIwLjM4My0xNy40NjIgMjAuNzEyLTE0LjM2LjMyOS04Ni42NjYuODg1LTg2LjY2Ni44ODV6IiBmaWxsLW9wYWNpdHk9Ii4xODEiLz48L2c+PHRleHQgeD0iNzAiIHk9IjExMCIgZmlsbD0iIzIyMiIgZm9udC1zaXplPSIxMjAiIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSI1IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiAgICBmb250LWZhbWlseT0iVWJ1bnR1IiBmb250LXdlaWdodD0iNzAwIj48dHNwYW4+PzwvdHNwYW4+PC90ZXh0Pjwvc3ZnPg==
---
Missing API key
Get an API Key | href=https://darksky.net/dev
Refresh | refresh=true iconName=view-refresh-symbolic
Seems like an API key is needed or in need of an update. Also the link to you icons in the readme is broken.
Hey,
I cannot run this script, because I get this error:
Traceback (most recent call last): File "weather.15m.py", line 735, in <module> checks() File "weather.15m.py", line 731, in checks print_main() File "weather.15m.py", line 684, in print_main <g transform="translate('+str(translate)+',0)">' + nextIcon +'</g>\ NameError: name 'mainiconfontcolor' is not defined
I am a total newbie when it comes to python. I tried running this script, but at first I got errors regarding print functions missing (). So I converted this script using 2to3. I have my api key and location adresses pasted.
Could you help me?
Is is possible to run this script behind a proxy?
I have tried with the proxy variables set in the shell without success.
$ env|grep -i proxy
AUTO_PROXY=http://wwwproxy/auto
NO_PROXY=localhost,127.0.0.1,127.0.1.1,.localdomain,axis.com
http_proxy=http://wwwproxy:3128
FTP_PROXY=http://wwwproxy:3128
ftp_proxy=http://wwwproxy:3128
auto_proxy=http://wwwproxy/auto
https_proxy=http://wwwproxy:3128
HTTPS_PROXY=http://wwwproxy:3128
no_proxy=localhost,127.0.0.1,127.0.1.1,.localdomain,axis.com
HTTP_PROXY=http://wwwproxy:3128
$ python weather.15m.py
| imageHeight=20 image=PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMzUuNDY2NjcgMTM1LjQ2NjY3IiBoZWlnaHQ9IjgwIiB3aWR0aD0iODAiPjxnPjxwYXRoIGQ9Ik00OS45OTkgNTQuMTI0Yy0xMy43NS0xMC4yODItMzAuODMgMi4yOTMtMjQuMTc4IDE2LjU5OC0yNS45ODYtMi4xMDUtMjYuMjI0IDMyLjAwNi01LjA0NCAzNC42MzEgNi4zMS0uMDM5IDg5LjI3Mi0uNTEgODkuMjcyLS41MSAyNi40MS4wNzcgMjcuNTEyLTQyLjc5NS0yLjkxOS00Mi4zNCA4LjY2NC0zNi43MTYtNTUuNTQ1LTQ1Ljg0LTU3LjEzMS04LjM4eiIgZmlsbD0iI2JiYmJiYiIvPjxwYXRoIGQ9Ik0yNS4xNyAxMDAuMjc4Yy0xNC4xMjUuNTI2LTE3LjIxNy00LjEwMi0xOS4wOTktOC4yMTQgMS41NDQgNi44ODcgNy4wNTMgMTIuMzQgMTQuNzA2IDEzLjI4OCA2LjMxLS4wMzkgODkuMjcyLS41MSA4OS4yNzItLjUxIDE1LjIyNi4wMzggMjIuMDQtMTQuMTg4IDE5LjI0OS0yNi4xNjEtLjA1IDUuNzg5LTMuMTAzIDIwLjM4My0xNy40NjIgMjAuNzEyLTE0LjM2LjMyOS04Ni42NjYuODg1LTg2LjY2Ni44ODV6IiBmaWxsLW9wYWNpdHk9Ii4xODEiLz48L2c+PHRleHQgeD0iNzAiIHk9IjExMCIgZmlsbD0iIzIyMiIgZm9udC1zaXplPSIxMjAiIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSI1IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiAgICBmb250LWZhbWlseT0iVWJ1bnR1IiBmb250LXdlaWdodD0iNzAwIj48dHNwYW4+PzwvdHNwYW4+PC90ZXh0Pjwvc3ZnPg==
---
No Internet connection | iconName=dialog-warning-symbolic
Check DarkSky status | href=http://status.darksky.net/ iconName=web-browser-symbolic
Refresh | refresh=true iconName=view-refresh-symbolic
$ curl -I https://status.darksky.net/
HTTP/1.1 200 Connection established
HTTP/1.1 200 OK
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.