@Argentum after a lot of struggling 17track is now supported as well, but there is only a correct time displayed, if you are in the same timezone as the carrier. I asked them and they told me the time is the local time of the specific carrier, but there is no information about which timezone it is and without configuring the timezone for all 170+ carriers, everyone has to calculate the difference for themself in their head. Pretty oldschool hah
Read the statement by Michael Teeuw here.
Posts made by strawberry 3.141
-
RE: MMM-ShipmentTracking
-
RE: custom.css
@ianperrin maybe i was quicker, but I learned it out of your contribution to my module ;)
-
RE: custom.css
a proper solution would be to do your changes in the custom.css only, so you’ll not lose your modification by an update
in general you do the following rule
.MODULE_NAME .CLASS_TO_CHANGE { /*CSS RULE*/ }
.compliments .xlarge { font-weight: bold; }
this will only affect your compliments module
-
RE: Parse HTML String
I think it’s weird that this works, because your looking for attribute class = data_1 but it’s an id
the css selector for an id is
#
, and when you putp
behind it will look for paragraphs in the element with the id data_1when you replace
$('div[class=data_1]').find('p').each(function (index, element) { data_array.push($(element).text()); });
with
data_array.push($('#data_1 p').text());
does it still work? Not sure if it will return the element if just one occurance is found or will return an array anyways
-
RE: .txt file include
sry wasn’t aware of that a buffer gets returned instead of a string if there is no encoding specified
fs.readFile('Test-temp.txt', 'utf8', (err, data) => {
-
RE: PIR sensor behind glass?
well you could put your sensor outside of the mirror and hang it into a corner, so it’s not obvious that it belongs to the mirror itself
-
RE: MMM-Soccer - Standings, Schedules and Top Scorers
I looked into this api and scotland is not supported
I think that you will get your data in a different structure, so you can’t use this module for it as it is, but you can adjust this module for your needs :)
-
RE: PIR sensor behind glass?
it will not work behind glass but @alexyak wrote a module for webcams or pi cams to detect motion, which can be hidden behind glass https://forum.magicmirror.builders/topic/490/motion-detector
-
RE: .txt file include
i think this should do the job
fs.readFile('Test-temp.txt', (err, data) => {
-
RE: .txt file include
there is a general design your module have to look like
you have to create a directory in
~/MagicMirror/modules/YOUR_MODULE_NAME
then create a file
YOUR_MODULE_NAME.js
Module.register("YOUR_MODULE_NAME",{ //here comes the rest of the code for module I posted above });
then create a file
node_helper.js
const NodeHelper = require("node_helper"); const fs= require("fs"); module.exports = NodeHelper.create({ //here comes the part of the nodehelper after the 3 dots as posted above });