I’ve made an update. Now it works with a node_helper.js so you will have less problems with CORS errors.
Have fun
I’ve made an update. Now it works with a node_helper.js so you will have less problems with CORS errors.
Have fun
can you maybe post your solution? that would be great
thanks bangee
@kwyjibo089, yes it’s possible:
change the line function getParams() like this:
/* getParams()
* Generates an url with api parameters based on the config.
*
* return String - URL params.
*/
getParams: function() {
var params = "?";
params += "id=" + this.config.id;
params += "&limit=" + this.config.maximumEntries;
params += "&transportations[]=ec_ic&transportations[]=s_sn_r&transportations[]=ir&transportations[]=re_d&transportations[]=ice_tgv_rj";
return params;
},
The line params += "&transportations[]=ec_ic&transportations[]=s_sn_r...";
is new an should allow you to filter the transportation object.
Here are all option:
transportations
Transportation means; one or more of ice_tgv_rj, ec_ic, ir, re_d, ship, s_sn_r, bus, cableway, arz_ext, tramway_underground
example:
&transportations[]=ec_ic&transportations[]=bus
Source: http://transport.opendata.ch/docs.html#section
It’s not testet yet, but I think it should work for you.
Have fun,
Gruss aus Oberrieden :-)
Try to remove the folder: ~/MagicMirror and use the installer as described on git.
check this:
https://github.com/MichMich/MagicMirror
Manual Installation
Download and install the latest Node.js version.
Clone the repository and check out the beta branch: git clone https://github.com/MichMich/MagicMirror
Enter the repository: cd ~/MagicMirror
Install and run the app: npm install && npm start
no it’s not testet at the moment. i have different type of glas at home, so let’s find out if it works.
I’ve ordered a Touch Film
but this will take some time, untill this arrives in Switzerland :-D
you can test your software in a browser using the webserver:
http://mirror_ip_adress:8080
install in firefox a tool called Firebug
https://addons.mozilla.org/de/firefox/addon/firebug/
it will show you errors on the fly.
Changes in node_helper.js requires a restart of your mirror software.