mpolden / jarvis2 Goto Github PK
View Code? Open in Web Editor NEWAwesome dashboard built with Flask and Mithril
License: MIT License
Awesome dashboard built with Flask and Mithril
License: MIT License
I spent a few days with Jarvis and made a infoscreen for Creativia that ran through the course of The Gathering 2015. Pretty awesome project!
Few of the problems i had:
I essentially ripped out the calendar tiles and added something that read from an .ics file. The problem however was that nothing in the javascript was very dynamic. I had to manually write a little bit to make sure the text was enough for the tiles.
https://github.com/Foxboron/Frank/blob/master/app/static/widgets/creativiascene/creativiascene.js#L29
The project also does not handle different screen sizes very well in my experience. This could be PEBCAK and i'm just horrible with CSS and Javascript.
Result: http://pr0n.sesse.net/tg15/original/DSC_4278.JPG
Awesome project, might be using it again next year!
Hi, I like your jarvis2 project so I wanted to run it on my fun_plug 0.5 NAS server with python 2.7. Since I can not install uwsgi (but nginx is running) I wanted to ask for ideas to run it in a different way. Any help would be awesome!
The nsb job is not fetching data correctly due to markup and URL changes on http://nsb.no.
Job "yr (trigger: interval[0:05:00], next run at: 2016-02-01 08:38:59.568695)" raised an exception
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/apscheduler/scheduler.py", line 512, in _run_job
retval = job.func(_job.args, *_job.kwargs)
File "/home/negus/jarvis2/app/main.py", line 179, in _run_job
body = job.get()
File "/home/negus/jarvis2/app/jobs/yr.py", line 52, in get
return self._parse(r.content)
File "/home/negus/jarvis2/app/jobs/yr.py", line 44, in _parse
'today': self._parse_tree(tree),
File "/home/negus/jarvis2/app/jobs/yr.py", line 28, in _parse_tree
windSpeed = data_root.xpath('windSpeed').pop()
IndexError: pop from empty list
INFO in main [/home/negus/jarvis2/app/main.py:158]:
JOBS['yr'] = {
'enabled': True,
'interval': 300,
'url': ('http://www.yr.no/sted/Norge/Aust-Agder/Grimstad/'
'Grimstad/varsel.xml'),
# Job timeout in seconds
'timeout': 1
}
Check out the Gmail API and consider if it can be used for the gmail job.
Basically resurrect this code: a6473b9
Consider adding support for different locales, or atleast add English templates for existing widgets.
Maybe the widget template (widgets/calendar/calendar.html
) could be in English, and localized versions could be provided as calendar_<language shortname>.html
, e.g. calendar_nb_no.html
make dashboard
fails if the directory app/templates/layouts/
doesn't exist.
create_dashboard.py
should create the directory if it doesn't exist.
Only a small subset of Angular is currently used. Might be better off using a smaller framework such as React or Mithril.
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.