OpenIPC / majestic

Majestic Community edition integration kit
MIT License
33 stars 5 forks source link

MODE Day-to-Night Confusion #136

Closed lucasdellasantina closed 8 months ago

lucasdellasantina commented 1 year ago

Required information

(cd /mnt/mmcblk0p1 flashcp uImage /dev/mtd2 flashcp rootfs.squashfs /dev/mtd3 reboot)

system:
  buffer: 1024
  staticDir: /var/www/majestic
  webAdmin: enabled
  logLevel: DEBUG
isp:
  blkCnt: 5
  memMode: normal
  lowDelay: false
image:
  mirror: false
  flip: false
  rotate: none
  contrast: 50
  hue: 50
  saturation: 50
  luminance: 50
osd:
  enabled: true
  template: "OpenIPC v.2.2 | %F %T %Z"
nightMode:
  enabled: true
  irSensorPinInvert: false
  irCutPin1: 52
  irCutPin2: 53
  dncDelay: 2
  nightAPI: false
  backlightPin: 14
records:
  enabled: false
  path: /mnt/mmcblk0p1/%Y/%m/%d/%H/%M.mp4
  maxUsage: 95
video0:
  enabled: true
  fps: 20
  codec: h264
  gopMode: smart
  rcMode: avbr
video1:
  enabled: true
  codec: h264
  fps: 10
  size: 1920x1080
jpeg:
  enabled: true
  qfactor: 100
  toProgressive: true
mjpeg:
  size: 640x360
  fps: 5
  bitrate: 2048
audio:
  enabled: true
  volume: 8
  srate: 8000
  codec: pcm
  outputEnabled: true
  speakerPin: 63
  speakerPinInvert: true
  outputGain: 23
  outputVolume: 86
rtsp:
  enabled: true
  port: 554
hls:
  enabled: true
youtube:
  enabled: false
  key: ctbp-7zsu-xfmm-haec-0hmb
motionDetect:
  enabled: true
  visualize: true
  debug: true
ipeye:
  enabled: false
netip:
  enabled: false
  user: admin
  password: NETIP password (hash)
  port: 34567
  snapshots: true
  ignoreSetTime: false
onvif:
  enabled: true
watchdog:
  enabled: true
  timeout: 90
cloud:
  enabled: false


# Issue description

Night mode switches correctly when lights are off but toggles back to night mode after switching to day mode when the lights are on.

Example of error 
https://github.com/OpenIPC/majestic/assets/25237943/23c0a72e-bcfa-4895-b176-aae135648029
Axon07 commented 11 months ago

I just did a fresh install and getting the same thing on my t31x

zerog2k commented 10 months ago

@lucasdellasantina it looks like you do not have any .nightMode.irSensorPin defined, which is the GPIO input majestic watches to determine ambient light level

lucasdellasantina commented 10 months ago

Thank in advance,

I don't remember what state it was in! but we were testing a lot config for a long time with paul pilipov, with him we had reached that conclusion.

In a few hours I will see the topic again

flyrouter commented 8 months ago

Done