Thank you for the tutorial, it solved my issues of sending the screen to sleep at night. For whatever reasons, I had to use wayland-0 and HDMI-A-2 on my installation.
Read the statement by Michael Teeuw here.
Best posts made by captsi
-
RE: Having trouble with screen on and off? Here are some tips that could help
Latest posts made by captsi
-
RE: Security bug - Wifi vs Wired on RPI
@sdetweil I’ve been happily running the OpenWeather for 3 years, and the weather API works fine when it’s hard wired! Defo not the 1000 requests issue. Thanks for the pointer though.
-
Security bug - Wifi vs Wired on RPI
I have a strange issue, which I’ve been narrowing down but can’t seem to resolve. Someone more knowledgeable should be able to help.
My router recently failed, and my ISP replaced it with a Linksys router. They replaced the main wifi settings so some things work fine, yet others do not.
I tried upgrading using the script, and initially met with failure. Eventually I got it working by hard wiring the RPI. In fact I got it all working by hard wiring the RPI, so it wasn’t an update thing after all.
I am running Calender Ext - and that is working fine. I am also running OneCallWeather and UKTide - neither is working. The issue appears to be that the MM is not even fetching the data, whether it is struggling to resolve servers or getting stuck at a firewall, I dont know. Both modules are stuck at “Loading…” Nothing showing in the errors when running npm start dev.
I am running Debain Bookworm. Latest version of MM. Node v20.18.1
So, how can I recode the weather and tide to behave similar to Calendar? How can I make the RPI think I am as secure as a wired connection? Or how can I kick a Linksys router into allowing the appropriate packets through?
Thanks all!
-
RE: Having trouble with screen on and off? Here are some tips that could help
Thank you for the tutorial, it solved my issues of sending the screen to sleep at night. For whatever reasons, I had to use wayland-0 and HDMI-A-2 on my installation.
-
RE: module not found error loading module in MagicMirror
Thank you so much @sdetweil. I tried to update a module, ran out of memory (8GB SD card install), had to upgrade then got the dreaded black screen. Your first post in this thread solved it.
I’ve written a couple of modules, mainly by using other people’s code as a base and then changing the functionality, only because my coding is basic.
So… one module uses request in the node helper. You’ve already helped someone install it, so thanks for that. The code is
}
request(options, function (error, response, body) {
if (!error && response.statusCode == 200) {
var result = JSON.parse(body)
// console.log(response.statusCode + result); // uncomment to see in terminal
self.sendSocketNotification(‘TIDAL_RESULT’, result)
What should I be using instead of “request”?Another module I use is calendarweek. Again its broken through the deprecated function “valid url” and “rrule”
createFetcher: function(url, fetchInterval, excludedEvents, maximumEntries, maximumNumberOfDays, auth) {
var self = this;
if (!validUrl.isUri(url)) {
self.sendSocketNotification(“INCORRECT_URL”, {url: url});
return;
}
and
if (typeof event.rrule !== “undefined” && event.rrule !== null && !isFacebookBirthday) {
var rule = event.rrule;
var addedEvents = 0;// can cause problems with e.g. birthdays before 1900 if(rule.options && rule.origOptions && rule.origOptions.dtstart && rule.origOptions.dtstart.getFullYear() < 1900 || rule.options && rule.options.dtstart && rule.options.dtstart.getFullYear() < 1900){ rule.origOptions.dtstart.setYear(1900); rule.options.dtstart.setYear(1900); } // For recurring events, get the set of start dates that fall within the range // of dates we"re looking for.</code>
Is there an elegant solution other than pulling the deprecated libraries?
-
RE: Tide Chart Module
It seems like various providers have changed the provision of tidal data which has messed with various plugins - worldtides no longer offering free data, wunderground require a PWS to name 2 sources. On the flip side some places are offering free data - the UK admiralty for instance, and tidetimes.org.uk seem to have an RSS feed freely available.
What are people using for their tide data at the moment?