Software timers don't work on electron (fixed: don't use particle.publish in timer)

Here you have a solution.