-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while creating pin files #41
Comments
I have the same problem. Investigating and looking to see if I find the way to solve the problem. raspberry zero w + raspbian strech nodejs 8.7.0 + cylon 1.3.0
|
@warlock, @alexarroyoduque, I was having the same issue running a very similar script by simply 'use strict'
const Cylon = require('cylon')
const PIN_NUMBER = 11
let interval = null
Cylon
.robot({ name: 'TestBot' })
.connection('raspi', { adaptor: 'raspi' })
.device('led', { driver: 'led', pin: PIN_NUMBER })
.on('error', function (error) {
console.log('got an error!!!!')
console.error(error)
})
.on('ready', function(bot) {
interval = setInterval(function() {
console.log(`Toggling LED at pin: ${PIN_NUMBER}`)
bot.led.toggle(function () {
console.log('Toggled LED')
})
}, 1000);
});
Cylon.start();
process.on('SIGTERM', function () {
console.log('SIGTERM event caught')
if (interval) {
clearInterval(interval)
}
Cylon.halt(function () {
console.log('Halted Cylon')
})
}) Was only able to get passed the error by running the script using sudo:
|
The project has been abandoned. It's sad because Cylon is the best known system of this type for Nodejs. I will try to find time to understand how it works and maybe I will write a fork or an alternative. |
Hi @warlock , @alexarroyoduque and @mymattcarroll, I know this project was abandoned and this issue quite old, but, were you been able to solve this problem? I'm facing the very same issue, and although is not active this project, it still works fine for some mini-projects. Thanks in advance! Regards, |
Hi, I'm using a raspberry pi.
I have been experimenting with the CylonJS library following the documentation example. However when I run the script I get the following error.
Can anybody help me?
The text was updated successfully, but these errors were encountered: