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?