Hy
i changed your module to work with the common W2801 Led Strips.
Now i wanted to add some new sequences.
I modified the switch case but everytime i will go to this sequence with the http request i get the answer, squence not found.
this.expressApp.use(bodyParser.urlencoded({extended: true}));
this.expressApp.get('/PiLights', (req, res) => {
console.error('[PiLights] Incoming:', req.query);
if (typeof req.query.sequence !== 'undefined') {
// Sequence
this.runSequence(req.query.sequence)
.then(function () {
res.status(200)
.send({
status: 200
});
})
.catch(function (err) {
res.status(400)
.send({
status: 400,
error: err.message
});
});
} else {
res.status(400)
.send({
status: 400,
error: 'Sequence not specified'
});
}
So if i send a new sequence then i will get the answer 400 sequence not specified.
Where do you specify the available sequences?
With Best regards
Schmo