text:
iframe display not supported

I am using uptime-kuma in an internal network and would like to display the status page inside "Home Assistant", which works via iframe...
Currently I receive an err_blocked_by_response - this seems to be due to a x-frame-options setting (X-Frame-Options: SAMEORIGIN)
https://stackoverflow.com/questions/44572387/failed-to-load-resource-neterr-blocked-by-response
Not sure if this is intended and no bug or not intended and a bug.

See comment of #851

Thanks @chakflying ,
I found a way by checking the source code. There are environmental Arguments  I can provide in the docker setup to turn this off and make my use case functioning.
I am aware of the security issues, though you can also call a short pho scriot in iframe which calls the header protected site :-).
i added the env variable „ UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN=true“
And now I can see the status page in my Home Assistant setup :-).
of course settings etc are available, but works for me.
thanks again!

Hi @bigcookie - I've tried the same as you, but it doesn't want to work for me...
I've tried with the following command line:
docker run -d --restart=always -p 8080:3001 -e UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN='true' -v uptime-kuma-Internet:/app/data --name uk-Internet louislam/uptime-kuma:1
as well as the values:

true
'true'
1
'1'

but none work... Can you help me out?

Hello Marian,

please check out https://github.com/louislam/uptime-kuma/issues/1142
(Just found this).

Example from the page:
docker run -d -e UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN=1 --restart=always -p 8080:3001 -v uptime-kuma-Internet:/app/data --name uk-Internet louislam/uptime-kuma:1

Probably the order makes a difference. I checked on my docker setup and

This
docker inspect --format '{{ (index .Config.Env) }}' CONTAINER_ID
give me
[NODE_VERSION=14.18.2 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin YARN_VERSION=1.22.15 UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN=true]
so the environmental variable "UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN=true" is being respected.
Probably you need to use latest uptime-kuma?
regards,
André

Gesendet: Freitag, 07. Januar 2022 um 23:54 Uhr
Von: "Marian Lein" @.>
An: "louislam/uptime-kuma" @.>
Cc: "bigcookie" @.>, "Mention" @.>
Betreff: Re: [louislam/uptime-kuma] iframe display not supported (Issue #1135)

Hi @bigcookie - I've tried the same as you, but it doesn't want to work for me...
I've tried with the following command line:
docker run -d --restart=always -p 8080:3001 -e UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN='true' -v uptime-kuma-Internet:/app/data --name uk-Internet louislam/uptime-kuma:1
as well as the values:
true
'true'
1
'1'

but none work... Can you help me out?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: @.***>

please check out #1142 (Just found this).
Yeah, that's been my topic as well - It's now solved, but thanks @bigcookie

ℹ  The value has to be set to 1 and not to true.
UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN=1
At least this was the case in my lxc container.

Is there a way to set this for the uptime kuma HA addon easily?

authors: AJolly KRider92 bigcookie chakflying svewag

repo: louislam/uptime-kuma


text:
Environment Variable Rename

NUXT_ENV_TZSTATS_URL is an old env var that needs to be renamed to NUXT_ENV_TZPRO_URL.
It's a lingering artifact of the old API that Briskett used to use.

i want to work on this issue

Woo, I appreciate it. Let me know if you have issues setting up your machine. I've recently updated the README.md

@GajendraR You'll have to pull down the repo on your local machine. The find every instance of NUXT_ENV_TZSTATS_URL URL and replace it.
You'll want to verify that you can successfully build the project using yarn build

Fixed in #21

source: gharchive/issue

authors: GajendraR lousando

repo: lousando/briskett

license: MIT

license_type: permissive

license_source: github-api


text:
Custom verifier with public key fetching based on KID

Dear Ophir,
I hope it’s ok I contact you like this. The issue management for the cosette repository is disabled, so this is the best way I could think of.
Like you, I am working on verifying EUDCC/DGC signatures, and I am wondering if it is possible to use cosette to get the kid before calling the verify method, or if you know of a better way to verify & decode it given a set of keys (like the one you posted in the EUDCC github thread today).
Great job with posting the keys and the bot by the way. I think a lot of people will find that useful. I am still waiting for a reply from the Swedish authorities to see if they can provide another list for backup/double-verification purposes.
Piotr

by  @piotrblasiak
initially received by email

Hello,
I just enabled issues in cosette :)
You can pass an array of verifiers with a kid for each to the verify function: https://github.com/lovasoa/cosette/blob/master/lib/sign.ts#L116-L151
I understand that this is not optimal, and a PR adding a new verifier type (with an async callback that would let the user fetch the public key for a KID however they want) would be welcome.
And even better, if you are interested in verifying dgc in javascript, let's not duplicate work ! We have a full implementation in sanipasse

https://github.com/lovasoa/sanipasse/blob/master/src/lib/digital_green_certificate.ts
https://github.com/lovasoa/sanipasse/blob/master/src/lib/digital_green_certificate_types.ts

Would you like to work with us on extracting that to a library and publishing it to npm ?

That's great! Looks like you're a bit further ahead than me. I'd love to help. What can I do?

First, in cosette : make sign accept a callback as its verifier argument. The callback is async, takes a kid as argument and returns a verifier (with a public key that cosette can use).
Second, I'll create a new repository with the dgc verification code from sanipasse, and add you to it.

I'm actually not sure it's needed. At least for my use-case, first downloading all the verifiers and having them in-memory would be better for speed and I don't see that becoming a big problem with too many verifiers. Don't you agree? So on-demand fetching sounds a bit unnecessary to me. But perhaps I've missed something?

If we implement a callback , we will support BOTH use cases: ahead-of-time fetching, and just-in-time fetching of public keys. This will let users implement their trust store however they want. It may be in a simple js object, in indexedDB, or online. And all we have to do to support all these usecases is just to make the function take a callback.

If we implement a callback , we will support BOTH use cases: ahead-of-time fetching, and just-in-time fetching of public keys. This will let users implement their trust store however they want. It may be in a simple js object, in indexedDB, or online. And all we have to do to support all these usecases is just to make the function take a callback.

Alright, you're probably right that it can't hurt. I'm on it.

I see the tests don't pass as the test/Examples directory is empty. Is this on purpose? Also, the more I look at this the more I wonder if this shouldn't be something done with the cose-js library instead as it clearly duplicates work as you say...

It is not empty. Looks like you cloned the repository without subrepositories.
https://git-scm.com/book/en/v2/Git-Tools-Submodules
just clone with --recursive

Ok, sorry. But question still remains why not work together with the authors of the original cose-js. They apparently put in a lot of work already.

There is an open PR : https://github.com/erdtman/cose-js/pull/45
They have multiple open issues and PRs, I don't think they are interested...

Ok I just commented on that one to see what me fellow Swede has to say.

authors: lovasoa piotrblasiak

repo: lovasoa/cosette


text:
I'm not sure if esoteric bug, or I am missing something obvious [Error: Input buffer contains unsupported image format]  (hint: it's probably the latter)

What are you trying to achieve?
I am trying to convert a Uint8ClampedArray, to a .png on disk.
Have you searched for similar questions?
aye, On here, and on SO
Are you able to provide a minimal, standalone code sample that demonstrates this question?
Absolutely! here it is below:
const sharp = require('sharp');
const path = require('path')
const base_dir = __dirname
const imgDir = path.join(base_dir, "images");
class test{
     constructor(sizex,sizey,scale){
          this.a=[0,0,0]
          this.b=[255,255,255]
          this.matrix = []
          this.width=sizex;
          this.height=sizey;
          this.scale=scale;
          this.images=[]
          this.data=new Uint8ClampedArray(sizex * sizey * 4)
          this.setUp()
     }
     setUp(){
          //make a mock image
          for(let y=0;y<this.height;y++){
               this.matrix.push([])
               for(let x=0;x<this.width;x++){
                    this.matrix[y]=this.a_or_b()
               }
          }
     }
     //random new array of a or b
     a_or_b(){return Math.random()>0.5?this.a.slice():this.b.slice()}

     async renderImage(renderCount){
          const height=this.height
          const width=this.width
          const imageData=[];

          //just set it to random noise.
          for(let y=0;y<height;y++){
               const imageRow=[]
               for(let x=0;x<width;x++){
                    this.matrix[y][x] = this.a_or_b()
                    imageData.push(imageRow)
               }
          }
          //copy data over to uint array this.data
          this.convertMatrixToPixels(imageData)
          //sharp stuff
          this.saveImageData(this.data,renderCount);
     }
     convertMatrixToPixels(imageData){
          //convert a regular 2d js array into a 1d clamped array
          for (let y = 0; y < imageData.length-1; y++) {
               for (let x = 0; x < imageData[y].length-1; x++) {
                    const idx = (imageData[y].length * y + x) << 2;
                    const row = imageData[y]
                    const col = row[x]
                    this.data[idx] = col[0]
                    this.data[idx + 1] =col[1]
                    this.data[idx + 2] = col[2]
                    // and opacity
                    this.data[idx + 3] = 255;
               }
          }
     }
     render(r){
          for(let i=0;i<r;i++){
               this.renderImage(i)
          }
     }
     async saveImageData(data,index){
          const savePath= path.join(imgDir,`${index}_test.png`);
          const img = await sharp(data).toFile(savePath, (e,info)=>{ //also tried sharp(new Buffer.from(data))
               console.log(e,info); //where the error is happening.
          })
          this.images.push(img)
     }
}
const TEST = new test(100,100,1)
TEST.render(5)

Are you able to provide a sample image that helps explain the question?
besides the code... there is nothing to show... nothing is saving
and I am only getting this error...
[Error: Input buffer contains unsupported image format] undefined

and as far as I can tell, the error is a lie, so I am probably making a dumb mistake somewhere or not catching an obvious implication.
But as I understand it, a clamped array should be 100% kosher... so... what might be the error?

resolved buggy code :)

repo: lovell/sharp


text:
Global libvips version does not get detected

I am trying to use the globally installed libvips with sharp, but it does not get detected during the npm install.
Dockerfile:
FROM alpine:3.15
WORKDIR /usr/src/app
RUN apk --update add nodejs=~16 npm build-base vips vips-dev
RUN pkg-config --modversion vips-cpp
RUN npm install --build-from-source --verbose sharp

Relevant parts from the console logs:
...
Step #0: Step 4/8 : RUN pkg-config --modversion vips-cpp
Step #0:  ---> Running in 9b8cfaddb573
Step #0: 8.12.1
...
Step #0: npm info run sharp@0.29.3 install node_modules/sharp (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
Step #0: npm info run sharp@0.29.3 install { code: 0, signal: null }
Step #0: npm timing build:run:install:node_modules/sharp Completed in 19607ms
Step #0: npm timing build:run:install Completed in 19608ms
...

It works if I follow the instructions described in this issue, however, it uses an older version of sharp (0.28.0), alpine (3.14) and node (14).
What could be the reason that the globally installed libvips is not getting detected?

I cannot reproduce this. Please remember that the latest version of npm minimises install-time output, which even includes native module compilation.
Here are the commands I'm running inside a container spawned via docker run -it --rm alpine:3.15
# apk --update add nodejs=~16 npm build-base vips vips-dev
...
# pkg-config --modversion vips-cpp
8.12.1
# npm install --build-from-source --verbose sharp
...
npm info run sharp@0.29.3 install node_modules/sharp (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm info run sharp@0.29.3 install { code: 0, signal: null }
...
# ls -al node_modules/sharp/vendor
ls: node_modules/sharp/vendor: No such file or directory
# node -p "require('sharp').versions"
{ vips: '8.12.1' }

The output of sharp.versions includes only vips, which means that it's using the globally-installed version rather than prebuilt (plus you'll note the vendor directory is also missing).

Thank you very much for the super-quick response. Hm, okay, I get the same result:
Step #0: Step 7/10 : RUN node -p "require('sharp').versions"
Step #0:  ---> Running in 66d205eee29e
Step #0: { vips: '8.12.1' }

I was expecting the sharp: Detected globally-installed libvips... message, so thanks for the explanation that the latest npm suppresses this. However, the other reason why I assumed that it did not work was because I am getting the error message Error: Input buffer contains unsupported image format when trying to process this EXR file.
The main reason I need the globally installed libvips is to be able to process EXR files. Based on the package description the build should contain OpenEXR. Why do you think I still get the above error message?

libvips only supports opening EXR files via the filesystem, which I think is due to a limitation of OpenEXR.
The provided image works for me using the same container.
# node -e "require('sharp')('in.exr').metadata(console.log)"
null {
  format: 'exr',
  width: 2656,
  height: 2784,
  space: 'scrgb',
  channels: 4,
  depth: 'float',
  isProgressive: false,
  hasProfile: false,
  hasAlpha: true
}

# node -e "require('sharp')('in.exr').toFile('out.png').then(console.log)"
{
  format: 'png',
  width: 2656,
  height: 2784,
  channels: 4,
  premultiplied: false,
  size: 9235484
}

Opening and converting EXR files is all what I am looking for. I get the same results as you running your commands above. I have found out that the error only comes up if I read the file into a buffer first (what I have been trying all the time):
var fs = require("fs");
var sharp = require("sharp");
var data = fs.readFileSync("in.exr");
sharp(data).metadata(console.log);
// [Error: Input buffer contains unsupported image format]

Is there something wrong with this approach? 🤔

Did you see my comment above?

libvips only supports opening EXR files via the filesystem

Oh, for some reason I read your comment with emphasis on opening (and not writing) instead of on via the filesystem. Okay, this explains everything then. I was looking for the solution at the wrong place all the time. Thank you very much for your help, Lovell.

authors: lovell tastnt


text:
Is embedded base64 images within SVG supported ?

What are you trying to achieve?
I am trying to convert a base64 SVG image as below to PNG format. But what I get is a blank image.
<svg width="100%" height="100%" viewBox="0 0 1200 1200" version="1.2" xmlns="http://www.w3.org/2000/svg">
    <image width="1200" height="1200" href="data:image/svg+xml;base64, ...">
    </image>
</svg>

When you searched for similar issues, what did you find that might be related?
According to @lovell #2157 's comment, this feature should be supported.

Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this question
const imageUrl =
        'https://nft-cdn.alchemy.com/eth-mainnet/ed3a191616815fe03d4bb216f0adb0f6';
const buffer = (await axios({ url: imageUrl, responseType: 'arraybuffer' }))
        .data;
const image = await sharp(buffer).png().toFile('test.png');

Please provide sample image(s) that help explain this question
https://nft-cdn.alchemy.com/eth-mainnet/ed3a191616815fe03d4bb216f0adb0f6

Embedded base64-encoded SVG within SVG is unsupported using the prebuilt binaries. You'll need to compile your own libvips and dependencies from source to achieve this.
https://github.com/lovell/sharp-libvips/issues/9
As I said in https://github.com/lovell/sharp/issues/2157#issuecomment-612621988, embedded base64-encoded PNG and JPEG images within SVG are supported.

Ah! Got it. Thank you for the reply. 🫡


text:
[uvm] 'custom_csr' has not been declared yet

I just tried running the DV on latest master and received the following error:
Error-[IND] Identifier not declared
/home/greg/work/ibex_area/ibex/vendor/google_riscv-dv/src/riscv_illegal_instr.sv, 1
  Identifier 'custom_csr' has not been declared yet. If this error is not
  expected, please check if you have set `default_nettype to none.

It comes from the latest vendoring in of riscv-dv with the new custom_csr stuff. Does something need configuring in the Ibex repository as well for this to work?

Yes, this relies on #1050 to compile and run properly.

Great thanks for the quick resolution!

authors: GregAC udinator

repo: lowRISC/ibex

license_source: bigquery


text:
[lint] Minor fixes

This is part of the OpenTitan lint cleanup push in order to get the entire design lint clean.
Signed-off-by: Michael Schaffner msf@google.com

If this looks good, it would be great if someone could merge this and re-vendor it into OpenTitan so that I can take care of the remaining top-level issues tomorrow and then switch the AscentLint step to be fully blocking.
CC: @moidx

source: gharchive/pull-request


text:
[otbn] Make Python model discoverable for out-of-tree simulation runs

In CI, we use the Verilator simulation from a build artifact (distribution) directory which isn't inside the source tree. This breaks an assumption in OTBN's ISSModel class:
DEBUG    root:utils.py:362 Error when constructing ISS wrapper: Cannot find a git top-level directory containing /home/vsts/work/1/a/build-bin/hw/top_earlgrey/Vtop_earlgrey_verilator.
DEBUG    root:utils.py:362
DEBUG    root:utils.py:362 Vtop_earlgrey_verilator: ../src/lowrisc_ip_otbn_0.1/dv/model/otbn_model.cc:518: unsigned int otbn_model_step(ISSWrapper*, const char*, unsigned int, const char*, unsigned int, const char*, svLogic, unsigned int, unsigned int): Assertion `model && imem_scope && dmem_scope && design_scope' failed.

The same problem will apply to anyone trying to use binary releases of OpenTitan.
Multiple solutions exist, such as packaging the simulator as proper Python package (see #3036) and ideally also including it in the distribution (which will then use $PATH for discovery), or implementing more logic into ISSModel to honor $REPO_TOP (which is set to the repository toplevel in CI runs through util/build_consts.sh, and continuing to use the ISS Python code directly from the source tree.
@rswarbrick

Are there any paths that our generated binaries know how to find? (Like an "install prefix", which might point into the build-bin directory). If so, I propose we use such a path and add a symlink somewhere that we can resolve through it. I really don't like the idea of hacking on the user's environment (as we discussed before), so would much prefer something less fragile.

I'm also ok with including otbnsim in the distribution, but would like the code to find it explicitly in that case, rather than relying on $PATH.

At Google, there is a limitation on how simulations are run (all files required to run a simulation are required to be copied over to a separate storage area on the network visible to the compute machines that invoke VCS / Xcelium). I presume the OTBN ISS, which needs to run inline with the simulation also needs to be a part of this data set (which I guess is what you mean by 'distribution'?). If otbnsim has other dependencies on things in-tree, then those would have to be moved too relative to it (not sure if there is, just making sure). Unfortunately, symlinks are not suitable either. With DVSim, we specify a scratch_root path which is where all build and run artifacts are created, so that becomes the anchor for finding things. Perhaps the same can be done for Verilator based sims as well? My apologies if I've misunderstood something.

That makes sense. Looks like we'll have to do "proper distribution" for otbnsim.
Just out of interest, why don't you copy the entire OT tree onto the compute workers? It's only ~100MiB (if you skip .git), which is probably peanuts compared to the NFS traffic you'll get from running VCS / Xcelium.

That makes sense. Looks like we'll have to do "proper distribution" for otbnsim.
Just out of interest, why don't you copy the entire OT tree onto the compute workers? It's only ~100MiB (if you skip .git), which is probably peanuts compared to the NFS traffic you'll get from running VCS / Xcelium.

Yes, that's true. I'd been hesitant to do that thus far (we'd be copying a whole bunch of things that are irrelevant to the simulation), but I guess that would be the most robust solution. I suppose the size is small enough even for people running sims on their laptops / local workstations that the copy (with update) operation does not make a huge dent on the run time.

Oof, this is going to be difficult if we really don't want to execute from the source tree. At the moment, otbnsim has a dependency on the shared utility code in hw/ip/otbn/util, which is not a problem. But it also runs reggen. Do we really want to try to package all of this stuff up?

authors: imphil rswarbrick sriyerg

repo: lowRISC/opentitan


text:
[bazel] Temporarily disable jump guards hardening

As noted in Issue #18680, there is a compiler bug caused by the jump guards hardening, in its interaction with the branch relaxation pass. Until it is fixed, IMO we should temporarily disable that hardening.

Superseded by https://github.com/lowRISC/opentitan/pull/18690


text:
[top_earlgrey,doc] Specify open drain / virtual open drain

This addresses the questions and concerns raised in issue #22802.

@OTshimeon and @moidx (or someone from your teams): Could you please check if this is accurate from the silicon side and suffices for the integration teams, respectively?

@jesultra @jettr please use
the type definitions from the pinout table for the purpose of this review https://opentitan.org/book/hw/top_earlgrey/ip/pinmux/doc/autogen/pinout_asic.html.
Thanks

Thanks for your feedback, @jesultra. I see your points; the described model doesn't answer all questions. I'll follow up with the silicon team and update this PR.

@jesultra: I changed the description after iterating with the silicon team. Could you please check if it answers your questions?

Non-lint CI checks intentionally canceled for this doc-only change

authors: andreaskurth moidx


text:
Outdated time dependency causes build error

When building on stable rust with v0.5.0, time 0.3.31 is causing a build error:
error[E0282]: type annotations needed for `Box<_>
  --> /home/lewis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.31/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
help: consider giving `items` an explicit type, where the placeholders `_` are specified
   |
83 |     let items: Box<_> = format_items
   |              ++++++++`

I assume this will be fixed by depending on time 0.3.36

Also, it looks like the leptos-use dependency may be outdated.

confirmed, I get the following:
error[E0599]: no variant or associated item named `__Nonexhaustive` found for enum `web_sys::NotificationPermission` in the current scope
   --> /Users/ababkin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/leptos-use-0.10.10/src/use_web_notification.rs:451:46
    |
451 |             web_sys::NotificationPermission::__Nonexhaustive => Self::Default,
    |                                              ^^^^^^^^^^^^^^^ variant or associated item not found in `NotificationPermission`

repo: lpotthast/leptonic


text:
Embedded Data System's OW-SERVER-ENET without HA7Net

I currently use a USB adapter to access various temperature sensors.
I also have an OW-Server-Enet Rev.2, which I would like to use instead because I can connect it via Ethernet.
I was so happy with the new HA7Net Version. But … not usable for my device.
Unfortunately, there is only the option to use HA7Net so far. Unfortunately, the server is considerably more expensive for this ... and I don't have one ;-)
The server is listed in the OWFS documentation and can be used directly from owserver using low-level TCP.
Unfortunately, I cannot configure it.
Is there a way to do this?
I would also like to use a local version of the add-on.
But I can't decide for sure what I need to adjust in the configuration.
It would be great if we could also use this device.
Thank you!
Best regards from RT
https://www.owfs.org/index_php_page_ow-server-enet.html
Embedded Data System's OW-SERVER-ENET

Ethernet 1-wire BUS master.

The OW-SERVER-ENET is a 1-wire bus master with:

Three powered 1-wire connections

The 1-wire connections are only electrically distinct. They appear a a single 1-wire bus
RJ-11 wiring is:

The primary design of the OW-SERVER-ENET is a continuously polling 1-wire sensor controller

Several common 1-wire chips supported including EDS's own and temperature sensors

◦	1-Wire Connection
◦	3 RJ12 Jacks

◦	Communication
◦	10BASE-T Ethernet or 802.11b/WiFi

◦	Network Protocols
◦	HTTP, Multicast, DHCP, SNMP, TFTP

◦	Supported Devices
◦	DS18B20: Programmable Resolution 1-Wire Digital Thermometer 	◦	DS18S20: 1-Wire Digital Thermometer 	◦	DS2406: Dual Addressable Switch DS2408: 8 Channel Addressable Switch 	◦	DS2423: 4kbit 1-Wire RAM with Counter 	◦	DS2438: Smart Battery Monitor DS2450: Quad A/D Converter

◦	1-Wire Devices
◦	Up to 24 devices

◦	Supply Voltage
◦	6.5-16V

◦	Supply Current
◦	250mA

 ◦ A Web interface is available

Advanced web feature allow continuous data feed within the web interface.

OWFS is supported using features added (for us) in the 2.11 firmware

EDS supplies upgrade instructions that require Windows.
Here are Linux instructions
Configuration (the port used by OWFS) in found under "1-Wire Setup" from the web interface
OWFS uses telnet and a specil ascii command set to send generic 1-wire commands
The ethernet address (IP address) of the OW-SERVER-ENET needs to be specified in the command line
Typical command line:
owserver --enet=192.168.2.43 -p 4304

https://owfs.org/index_php_page_enet-configuration.html
ENET configuration
The OW-SERBER-ENET is not configured for OWFS out of the box.

Only a subset of chips and properties are supported
It works as a continuously polling machine rather than on-demand.
Unrecognized properties or uses of chips aren't available (like thermocouples).

Thanks to the work of EDS and the 2.11 forware upgrade, that's all solved!
Enabling "1-Wire Setup" allows a simple but complete set of commands that are very simiar to the HA7S.
Embedded Data Systems

￼
Note that the checkbox must be checked and the port specified on the command line if not the 8080 default

this should be in owfs.conf:
owserver tcp address - the "enet" is the key for OW-SERVER-ENET-2
server: enet = 192.168.2.100:8080

tried it with a forked version and was not able to get data from oq-server_enet
Submitted an issue at [(https://github.com/owfs/owfs/issues/115)]

repo: lrybak/hassio-owserver


text:
Consider releasing a new major Ares Version

Consider releasing a new major Ares version 2.0.0 that introduces some breaking changes:

Possibly, a better solution is to merge both Hidden/Public annotations into one, which both support JUnit Jupiter and jqwik because one ignores the other's extensions.
Originally posted by @MaisiKoleni in https://github.com/ls1intum/artemis-java-test-sandbox/issues/17#issuecomment-675416169
Those would be on the api-level then

#53 Renaming TestUtils into Ares

#10 maybe as well, and not export some packages (e.g. security).

#11 Might also be easier.

A new Security Manager would be a bad idea, considering #113.


text:
Programming exercises: Submission Policies for Programming Exercises

Checklist
General

[ ] I tested all changes and their related features with all corresponding user types on a test server.
[x] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.

Server

[x] I followed the coding and design guidelines.
[x] I added multiple integration tests (Spring) related to the features (with a high test coverage).
[x] I added @PreAuthorize and checked the course groups for all new REST Calls (security).
[x] I implemented the changes with a good performance and prevented too many database calls.
[x] I documented the Java code using JavaDoc style.

Client

[x] I followed the coding and design guidelines.
[x] I added multiple integration tests (Jest) related to the features (with a high test coverage), while following the test guidelines.
[x] I added authorities to all new routes and checked the course groups for displaying navigation elements (links, buttons).
[x] I documented the TypeScript code using JSDoc style.
[x] I added multiple screenshots/screencasts of my UI changes.
[x] I translated all newly inserted strings into English and German.

Changes affecting Programming Exercises

[ ] I tested all changes and their related features with all corresponding user types on Test Server 1 (Atlassian Suite).
[ ] I tested all changes and their related features with all corresponding user types on Test Server 2 (Jenkins and Gitlab).

Motivation and Context
The current system lets students submit programming exercise submissions until the deadline of an exercise. Students can submit solutions as often as they want. The automatic assessment system provides feedback on each submission. Because students are not limited to the number of times they receive feedback, they tend to rely solely on the generated feedback instead of reflecting on their solution.
In this PR we implement submission policies to prevent students from misusing the automatic feedback generation process. With submission policies in place, the system limits feedback and motivates students to reflect on and test their submissions more thoroughly.
Description
Exercise creators can now specify lock repository and submission penalty policies when creating programming exercises.
A lock repository policy is used to lock the participation repository after a fixed number of submissions. A submission penalty policy is used to deduct points from the achieved score for each submission exceeding the fixed submission limit.
Submission policies can be updated and toggled retroactively on the existing grading configuration page. When no submission policy was specified during the exercise creation process, the grading configuration page allows adding a submission policy retroactively.
Steps for Testing

Prerequisites:
1x Course
2x Students
1x Tutor
1x Editor
1x Instructor
FR1: Specify Submission Policy

Open the regular programming exercise creation page and fill out every required input
Go to the bottom of the page
2.1. Make sure that it displays an option input field with a "Submission Policy" header, with "None" as the default value

2.2. When clicking on the selector, you have three options: "None", "Lock Repository" and "Submission Limit Exceeded Penalty"
3. Select "Lock Repository"

3.1. Make sure that an additional input field "Submission Limit" appears.
3.2. Make sure that you cannot leave this field empty.
3.3. Make sure that you can only enter values between 0 and 500
3.4. Make sure that hovering over the ?-icon displays a help text

Set the submission limit and create the exercise
Ensure that the submission policy was saved appropriately by navigating into the edit view of the programming exercise.
In the edit view of the programming exercise, make sure that you cannot edit the submission policy type and the submission limit. Make sure that an information box is displayed that directs to the grading page.
Create another programming exercise, but with the Submission Penalty Policy.

7.1. Make sure that you can use another input field to specify the submission penalty.
7.2. Make sure the value must be set and must be greater than 0.
8. Make sure that this type of policy is saved as well.
9. Create a regular programming exercise with no submission policy at all.

Now you have three programming exercises set up with all types of policies (none, lock repo, submission penalty). Use these exercises for further testing steps.
FR2: View Submission Policy as Participant

Participate in the exercise without a submission policy enabled. You should notice absolutely no difference in comparison to the regular participation workflow. Submit 3 times (this will be important later on).
Participate in the exercise with the "Lock Repository" Policy enabled.
2.1. Make sure that the correct submission limit is displayed in the exercise detail header, along with information about the policy when hovering over the ?-icon.

2.2. Submit anything. Make sure that the result string contains an indication of your current number of submissions.

2.3. Submit until you reach the submission limit. Make sure that the participation repository is locked and you cannot use the code editor to submit anymore.
3. Participate in the exercise with the "Submission Penalty" Policy enabled.
3.1. Make sure that the correct submission limit is displayed in the exercise detail header, along with information about the policy when hovering over the ?-icon.

3.2. Submit any somewhat correct solution. Make sure that the result string contains an indication of your current number of submissions.

3.3. Submit again until you exceed the submission limit. Make sure that the score decreases for every submission exceeding the limit by the specified exceeding penalty.

FR4/5: Edit and Activate Submission Policy

Navigate to the grading page of the programming exercise without any submission policy and open the tab "Submission Policy".

Configure a lock repository policy

Click the "Update" button to update the submission policy.

Navigate to the exercise participation page with a student account and make sure that nothing has changed.

In the grading view, click the "Activate" button.

Refresh the exercise participation page with the student account and make sure the submission limit in the exercise detail header is now 4.

Make sure this works with a Submission Penalty Policy as well

FR6: Deactivate Submission Policy

Participate in a programming exercise with a lock repository policy until the repository is locked

Navigate to the grading page of your programming exercise.

Disable the submission policy by clicking the "Deactivate" button. Make sure that the "Deactivate" button turns into an "Activate" button.

Navigate back to the exercise participation page and make sure that the submission limit part of the exercise header is gone completely and your repository is unlocked.

Review Progress

Code Review

[ ] Review 1
[ ] Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Test Coverage
Possibly outdated
SubmissionPolicyResource.java: 100% | 100%
SubmissionPolicyService.java: 99% | 85% (Additional branch coverage does not make sense in this case, since those are impossible to reach as of now)
submission-policy.model.ts: 100% | 100%
submission-policy.service.ts: 100% | 100%
submission-policy-update.component.ts: 100% | 96%
Future Work

The submit button in the online code editor should not be active when the repository is locked
The code editor should be read-only when the repository is locked

@JohannesStoehr @MDK5 @FlorianGlombik @lschlesinger @PatZintel I have incorporated your feedback and adjusted the Submission Penalty Policy as discussed with @krusche. It would be amazing if you can test this PR again. Thanks for the help 👍

Tested on TS1, the basic functionality is working. One suggestion: I'd use the number of results the student got in Artemis since Bamboo might have some building errors or the student might submit twice in the code editor.

The updated calculation only takes submissions with at least one result into account - This way students won't get penalized if Bamboo does not return a result (feedback) for whatever reason.

It is not really intuitive how to edit the policy through the grading tab, a tooltip or button in the edit page would be helpful.

I have now added a tooltip that provides a little more information:

The submission policy on the edit page does not have the correct font

Now the correct font is used (see images above)

The add and delete buttons in the edit interface is not really required, even if the system handles it like that, the interface does not need the buttons

Add and Delete Buttons were removed in favour of just one Update button. This cleans up the user interface.

The penalty should be visualized

The penalty is now visualized:

If I was a student I would start right away with the code editor during a lecture exercise, the information on which submission policy is used needs to be visible in the code editor!

I have now included the number of allowed submissions in the top left corner, this should help students with the orientation.

The lock policy did not lock my repository (the submission limit was 1)

The number of submissions was unrelated, but the code editor allowed submissions after the repository was locked. This is not possible anymore

Inserting numbers with a dot notation does not work and should work if we want to be consistent with other parts of Artemis (e.g. "23.23")

This is now fixed. You should be able to insert numbers like in any other number input field.

It does not make sense to me to have 0,5 submissions, so this should be a full number

This is not possible. Submission Limit only takes integers now.

I would prefer a more concrete description here, I think that this is too vague for new instructors who are not too familiar with the system.

Since we have changed how this policy operates, the description should be more accurate now!


text:
mapmaker.jl gives strange results

I tried to run mapmaker.jl on a TOD built from the 44 GHz sky map of Planck by using the scanning strategy of STRIP.  The TOD also includes simulated baselines of 1/f noise.
I made the code print the content of some pixels (from 193706 to 193716) of the Planck map in input and the same pixels of the destriped map.
That is the result:
Planck map:   [-0.000203848, -0.000209665, -0.000218049, -0.000210582, -0.00017884, -0.000142592, -0.000123256, -0.00011911, -0.000123725, -0.000137174, -0.000149694]
destriped map: [0.00218755, 0.00278706, 0.00267588, 0.00271644, 0.00329075, 0.00260661, 0.00298804, 0.00232408, 0.00213763, 0.00278141, 0.00205138]
By changing the definition of binned_map in function tod2map from  binned_map= Array{Float64}(num_of_pixels) to binned_map = zeros(Float64, num_of_pixels)  everything works properly:
Planck map: [-0.000203848, -0.000209665, -0.000218049, -0.000210582, -0.00017884, -0.000142592, -0.000123256, -0.00011911, -0.000123725, -0.000137174, -0.000149694]
destriped map: [-0.000203846, -0.000209665, -0.000218049, -0.000210581, -0.000178841, -0.000142593, -0.000123257, -0.000119112, -0.000123726, -0.000137175, -0.000149695]
why? this is a quite strange behaviour

Thanks @silviacaprioli. May you please post a short code here that reproduces the behaviour? Otherwise people will not be able to reproduce the bug.
I bet it is not crucial that the input map is Planck 44 GHz, any map should do. You might build a very simple map whose pixels have the values 1, 2, 3…. and re-run your code, so that people will not have to download the Planck map to replicate your problem.


text:
restore ability to save files to directories named after prompt

The recent args refactor broke the handling of the --prompt_as_dir flag. This restores it.
In addition, there was a bit of semantic drift between the internal configuration variable "sampler_name" and the RFC field "sampler." I did a little workaround so as not to introduce many code changes.

Looks good.
Tested with a combination of:
dream.py -p
dream.py -p --outdir
dream.py -p (with cmd --outdir)
dream.py --outdir
dream.py --outdir (with cmd --outdir)
Images were stored correctly in all cases.

repo: lstein/stable-diffusion


text:
🛑 lsy223622.com is down

In 8894e3b, lsy223622.com (http://lsy223622.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: lsy223622.com is back up in 9ca241e.


text:
🛑 lsy223622.com is down

In 7460f5f, lsy223622.com (http://lsy223622.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: lsy223622.com is back up in 9ce14ba.


text:
🛑 Mirror-爬 is down

In 4cffb24, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 895 ms

Resolved: Mirror-鱼露 is back up in 5cea49b.


text:
🛑 Mirror-木生 is down

In 651e5e7, Mirror-木生 (https://t.lsy223622.com/ncov-xidian-times) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Mirror-爬 is back up in 86b7927.


text:
🛑 Mirror-爬 is down

In 7624a5d, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 897 ms

Resolved: Mirror-鱼露 is back up in ba92b74.


text:
🛑 Mirror-爬 is down

In 78c2e7d, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 837 ms

Resolved: Mirror-鱼露 is back up in 2401252.


text:
🛑 Mirror-爬 is down

In d71370d, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 1140 ms

Resolved: Mirror-鱼露 is back up in 7a2b379.


text:
🛑 Mirror-爬 is down

In 6da8945, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 1122 ms

Resolved: Mirror-鱼露 is back up in 2a2982f.


text:
🛑 Mirror-爬 is down

In 96263ed, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 1663 ms

Resolved: Mirror-鱼露 is back up in dcaf871.


text:
🛑 Mirror-爬 is down

In e8580bc, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 799 ms

Resolved: Mirror-鱼露 is back up in e4726ac.


text:
🛑 Mirror-爬 is down

In 13643a3, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 744 ms

Resolved: Mirror-鱼露 is back up in 2b0f98f.


text:
🛑 Mirror-爬 is down

In 3baf707, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 1070 ms

Resolved: Mirror-鱼露 is back up in 097259e.


text:
🛑 Mirror-爬 is down

In 5e3c5bb, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 737 ms

Resolved: Mirror-鱼露 is back up in df8f824.


text:
Avoid restarting a looping player if is stopped

Corrected a bug that was causing a player to loop forever if it was stopped by a dart channel command some moments before its end.

Thanks!

authors: luanpotter sroddy

repo: luanpotter/audioplayer


text:
MvxCachedImageView  binding issue

I am building a solution with Xamarin.Android. It uses MvxCachedImageView in MvxRecycler. While it is running on emulator with small pictures from emulator camera, it looks fine. Once I tested it on real phone with some real pictures, the app crashed after a few pages loading in the recycler.
When I check the debug log, I found that binding for DownSampleWidth is not working. This is the binding in the axml and the message in debug log.
    <ffimageloading.cross.MvxCachedImageView
        android:layout_width="@dimen/listitem_route_picture_image_size"
        android:layout_height="@dimen/listitem_route_picture_image_size"
      local:MvxBind="LoadingPlaceholderImagePath 'res:ic_image_grey_700_48dp.png'; ErrorPlaceholderImagePath 'res:ic_error_outline_grey_700_48dp.png'; Transformations Transformations; DownSampleWidth DownSampleWidth; ImagePath PicturePath" />

[0:] MvxBind:Warning: 31.15 Failed to create target binding for binding DownSampleWidth for DownSampleWidth
I thought it was an issue with my project at first. However, I found that the DownSampleWidth error also happens in the GitHub sample project. Scrolling down the recycler would also cause loading errors.
The crashing and loading error are most likely due to pictures are not downsampled.
My questions:

Would that be something missing in my environment that caused this binding issue?
Is it possible to specify TransparencyChannel in axml?
Is it possible to specify DownSampleWidth with resource dimension (@dimen/listitem_route_picture_image_size) instead of hardcoded width in pixel in the class object?

Thank you very much.

Hi @Nick1611,
What is the DownSampleWidth property type in your view model?

[0:] MvxBind:Warning: 31.15 Failed to create target binding for binding DownSampleWidth for DownSampleWidth

IMO it's rather an issue with MvvmCross than FFImageLoading.

Is it possible to specify TransparencyChannel in axml?

This property is depreciated, you should use BitmapOptimizations property instead. By default FFImageLoading disables transparency channel if it's not needed, but if the image has transparency channel, it's enabled.

Is it possible to specify DownSampleWidth with resource dimension () instead of hardcoded width in pixel in the class object?

Yes, just set DownsampleUseDipUnits = true, then density independent points are used

it is the same as in the github sample:
    public double DownSampleWidth => 200d;

Initially I tried to resolve it from the mvx issue direction too. All other bindings are good except this one. Later on, I found the same error in the sample project.

@Nick1611 Does it work when you disable linking?

Hi Daniel,
Linking was disabled!
I got a clue from your last answer and looked into the implementation of MvxCachedImageView. The field is defined as DownsampleWidth in MvxCachedImageView, not DownSampleWidth. It would be good to update the sample axml.
Thank you very much for your great support again. Can't get the same level even with paid service.

Nice catch! Thanks :)

repo: luberda-molinet/FFImageLoading

license: mit


text:
"chess.ts" npm package

I've been using the "chess.ts" package name on npm for a personal project, but seems like you need it more than me!
it's now unpublished, so it should be available for your project

@theGolyo thank you so much for letting me know, I've just updated the repo to start publishing to chess.ts, cheers!

authors: lubert theGolyo


text:
docs: Add dark mode image

Não é possível ver a imagem corretamente se você estiver usando github no dark mode (ou high contrast, que é o meu caso):

Essa PR faz com que a imagem renderizada mude se vc estiver usando dark mode vs light mode.

@jvfe looks good, thanks! do you a downside in putting it to always have the white background as a default? There are some add-ons for  dark mode too and this issue affects the main page at https://wikiora.toolforge.org/

@jvfe looks good, thanks! do you a downside in putting it to always have the white background as a default? There are some add-ons for dark mode too and this issue affects the main page at https://wikiora.toolforge.org/

Not really, I can change it to just have the image with the white background. I'd thought you'd prefer having the original one, that's why I kept it like this.

I changed it in a different commit (sorry and thanks for the PR)

authors: jvfe lubianat

repo: lubianat/wikiora


text:
ARMORY 3D: shape key issue.

i have a scene and whenever i have a shape key in it and i test the test screen is black.

this is the error i think
Trace: TypeError: Cannot read property 'morphWeights' of null
at Function.setObjectConstant (:31273:72)
at Function.setObjectConstants (:28362:26)
at iron_object_MeshObject.render (:26172:25)
at iron_RenderPath.submitDraw (:16640:6)
at iron_RenderPath.drawMeshes (:16589:9)
at Function.drawMeshes (:4563:45)
at Function.commands (:4698:39)
at iron_RenderPath.armory_renderpath_RenderPathCreator.path.commands (:4831:41)
at iron_RenderPath.renderFrame (:16380:8)
at iron_object_CameraObject.renderFrame (:24333:26)

Plese open at armory repo instead.


text:
🛑 Školský šport is down

In 8f2ee90, Školský šport (https://skolskysport.sk/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Školský šport is back up in 470ca99 after 7 minutes.

repo: lubosm/minedusk-uptime


text:
Some pages not rendering

Ran 20+ page document. Few  times some pages was not rendering.

I realized what i did wrong due to new to flutter and threading in flutter. So not an issue.


text:
Question: How to get started

Hi, i'm totally new to Home Assistant and have a Risco panel i want to integrate so this has led me to install MQTT (again not sure what im doing but seems to be running) and then now node.js.
Node.js is where im really confused. Is there any getting started tutorial to help me get going here ?
Also is there a way to communicate directly with the panel instead of via the risco cloud ? i use the CS software to talk to the panel locally to program it (think its via port 1000) so can we just talk direct and bypass riscos cloud ?
Thanks a lot - great work - lets hope i can get it going !!
Rob

Hi, I've just installed Portainer onto my hassio which has given me a GUI to the underlying docker. Does anyone know how to now get this going using that ? I assume im not to far off being able to get the docker image into it now ?

I'm using Portainer, very light and very useful. With Portainer you can user stack like docker-composer.
I suggest you to learn basics of docker-composer YAML file.

Thanks will read up on that
Get Outlook for Androidhttps://aka.ms/ghei36

From: Luca Calcaterra notifications@github.com
Sent: Friday, March 15, 2019 2:20:09 PM
To: lucacalcaterra/risco-mqtt-bridge
Cc: rob1981forest; Author
Subject: Re: [lucacalcaterra/risco-mqtt-bridge] Question: How to get started (#8)
I'm using Portainer, very light and very useful. With Portainer you can user stack like docker-composer.
I suggest you to learn basics of docker-composer YAML file.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/lucacalcaterra/risco-mqtt-bridge/issues/8#issuecomment-473303967, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AsRl0KBAlIuyqqFA3tipm_U_Y6f26uhUks5vW6wZgaJpZM4Zyj6K.

me again ! so i've made progress......
I've installed raspbian onto my PI then put docker on, i've then put Home Assistant, Portainer, Mosquitto and your risco MQTT bridge - all as separate docker containers.........still working things through but should the logs from your bridge read like this if all is working fine ?  Does this look normal or does it indicate problems (which i have by the way !!).......however this is progress !!
26-03-2019 21:55:20 debug: Init function for getting data from Cloud completed: OK
26-03-2019 21:55:28 debug: polling ...
26-03-2019 21:55:29 debug: return null, overview empty!
26-03-2019 21:55:29 debug: Polled...counter:  30
26-03-2019 21:55:29 warn: Disconnected from cloud...relogin and init...
26-03-2019 21:55:29 error: Exceptions on login response: Error: Request failed with status code 200
26-03-2019 21:55:29 debug: ...site and Pin Code sent...Response code is 302: OK
26-03-2019 21:55:30 debug: return null, overview empty!
26-03-2019 21:55:30 debug: newarmstatus emitted
26-03-2019 21:55:30 debug: no new status
26-03-2019 21:55:30 debug: Init function for getting data from Cloud completed: OK
Thanks a lot !

hmm, doesnt look ok i think, you sure about the login and the siteID?
here is mine, i have it working

019-03-26 10:10:30
stdout
26-03-2019 11:10:30 debug: Polled...counter:  1

2019-03-26 10:10:30
stdout
26-03-2019 11:10:30 debug: ...Control Panel State taken and overview not empty... OK

2019-03-26 10:10:30
stdout
26-03-2019 11:10:30 debug: polling ...

2019-03-26 10:10:20
stdout
26-03-2019 11:10:20 info: Status panel infos arrived

2019-03-26 10:10:20
stdout
26-03-2019 11:10:20 info: publish messages on MQTT Server

2019-03-26 10:10:20
stdout
26-03-2019 11:10:20 info: Arming status: armed

2019-03-26 10:10:20
stdout
26-03-2019 11:10:20 debug: newarmstatus emitted

2019-03-26 10:10:20
stdout
26-03-2019 11:10:20 debug: Polled...counter:  0

2019-03-26 10:10:20
stdout
26-03-2019 11:10:20 debug: ...Control Panel State taken and overview not empty... OK

2019-03-26 10:10:20
stdout
26-03-2019 11:10:20 debug: polling ...

2019-03-26 10:10:10
stdout
26-03-2019 11:10:10 debug: polling started...

2019-03-26 10:10:10
stdout
26-03-2019 11:10:10 debug: Init function for getting data from Cloud completed: OK

2019-03-26 10:10:10
stdout
26-03-2019 11:10:10 info: publish messages on MQTT Server

2019-03-26 10:10:10
stdout
26-03-2019 11:10:10 info: Arming status: armed

2019-03-26 10:10:10
stdout
26-03-2019 11:10:10 debug: newarmstatus emitted

2019-03-26 10:10:10
stdout
26-03-2019 11:10:10 debug: return null, overview empty!

2019-03-26 10:10:09
stdout
26-03-2019 11:10:09 debug: ...Overview taken...Response code is 200 and no data error: OK

2019-03-26 10:10:09
stdout
26-03-2019 11:10:09 debug: ...Detectors taken...Response code is 200 and no data error: OK

2019-03-26 10:10:09
stdout
26-03-2019 11:10:09 debug: ...Event History taken...Response code is 200 and no data error: OK

2019-03-26 10:10:08
stdout
26-03-2019 11:10:08 debug: ...Cameras taken...Response code is 200 and no data error: OK

2019-03-26 10:10:08
stdout
26-03-2019 11:10:08 debug: ...site and Pin Code sent...Response code is 302: OK

2019-03-26 10:10:08
stdout
26-03-2019 11:10:08 debug: Logged...Response code is 302: OK

2019-03-26 10:10:07
stdout
26-03-2019 11:10:07 info: Connected to MQTT Server

2019-03-26 10:10:07
stdout
26-03-2019 11:10:07 debug: Class Connection Constructor end

thanks, yeah pretty sure i have the correct site ID and username / password is right - will keep checking.......thanks for the response

you using myelas or risco ?

risco

well, strange you have that warning code, all i needed to change in config is siteid / email / pass / pincode
and that that home assistant stuff and mqtt stuff
up and running from first time

maybe my mqtt - as its all in docker i'm still not 100% sure ive configured it correct but expected this bit to connect up regardless of mqtt working fine

i have the MQTT addon in Home Assistant configured
but i dont see in your log thet the risco docker is connecting to your mqtt?
i have like :
26-03-2019 11:10:07 �[32minfo�[39m: Connected to MQTT Server

yeah i dont see that true - but my mqtt logs show this which makes me think it has connected ok:
1553634208: New connection from 172.17.0.4 on port 1883.
1553634208: New client connected from 172.17.0.4 as mqttjs_84364d9d (c1, k60, u'').

looks indeed good, no idea :(
you are using HA right? do you see the alarm control ?

yeah using HA, i sort of see the alarm control panel in HA but can only get an arm button on it - i think my issue must lie with mosquitto. do you need to change mosquitto.conf at all do you know ?

No, didn't change mosquito....
Just copy pasted the mqtt alarm platform from example here...
But I did change the config.js file for HA, cause it's designed for openhab

yeah, i did all that too - changed config.js for HA as it says - i'll keep going with it - thanks though

sorted !! somehow had the wrong site ID in there - but sure i follwed instructions. anyway you helped me double check it all. HA can arm and disarm things now.
Will look to play with it now as i want things to happen when alarm goes off - say all my lifx start to flash - assume that is possible here ?

Yes , I do those automations too like...
Leaving the house : all lights off, turn off the television, internet radio ...
There is one downside with this docker, when you arm/disarm from the hardware Risco panel, the status is changing after 5 minutes only....
So I have setup an email platform in ha, from riscocloud I send an email to a specific mailbox, I read out that mailbox every 5 sec in HA..
Based on content of the mail, like armed... I do my automation....
I use this docker mainly for arming/disarm with NFC tags, we have those in our card, just swipe with the smart phone, then alarm is disarmed
... This is safe to use... Look for HassNFC , nice tool

Sounds good.....I can do automations from the sensors ? So say the system isn't armed but I walk into a room with a PIR and I can then make a light turn on ?
Get Outlook for Androidhttps://aka.ms/ghei36

From: pergolafabio notifications@github.com
Sent: Wednesday, March 27, 2019 4:52:25 AM
To: lucacalcaterra/risco-mqtt-bridge
Cc: rob1981forest; Author
Subject: Re: [lucacalcaterra/risco-mqtt-bridge] Question: How to get started (#8)
Yes , I do those automations too like...
Leaving the house : all lights off, turn off the television, internet radio ...
There is one downside with this docker, when you arm/disarm from the hardware Risco panel, the status is changing after 5 minutes only....
So I have setup an email platform in ha, from riscocloud I send an email to a specific mailbox, I read out that mailbox every 5 sec in HA..
Based on content of the mail, like armed... I do my automation....
I use this docker mainly for arming/disarm with NFC tags, we have those in our card, just swipe with the smart phone, then alarm is disarmed
... This is safe to use... Look for HassNFC , nice tool
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/lucacalcaterra/risco-mqtt-bridge/issues/8#issuecomment-476973985, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AsRl0DX2oTNefQpqqNbq7m9l1VjMWBH-ks5vavkJgaJpZM4Zyj6K.

That I didn't try yet, not sure if that's possible... But you will have a delay for a few seconds anyway, not sure if that's a good idea to turn on lights....
If you want to turn on lights, by pir, then buy those cheap xiaomi motion sensor, like 10eur...
Work verry good with HA

Just looked at those......seem good price and assume I need the home gateway with it too ?
Get Outlook for Androidhttps://aka.ms/ghei36

From: pergolafabio notifications@github.com
Sent: Wednesday, March 27, 2019 7:53:23 AM
To: lucacalcaterra/risco-mqtt-bridge
Cc: rob1981forest; Author
Subject: Re: [lucacalcaterra/risco-mqtt-bridge] Question: How to get started (#8)
That I didn't try yet, not sure if that's possible... But you will have a delay for a few seconds anyway, not sure if that's a good idea to turn on lights....
If you want to turn on lights, by pir, then buy those cheap xiaomi motion sensor, like 10eur...
Work verry good with HA
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/lucacalcaterra/risco-mqtt-bridge/issues/8#issuecomment-477022118, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AsRl0EhzpKv7NxPMjA71ccYcd3gTJ4-1ks5vayNzgaJpZM4Zyj6K.

you can use xiaomi gateway, but i dont like those gateways from manufacturer
i prefer generic gateways, that can talk to all brands, so it creates 1 mesh
like philips, xiaomi, ikea, ... they are all supported
i am using de deconz gateway (conbee stick)
https://www.home-assistant.io/components/deconz/
they supported almost everything, and also cheaper then xiamoi/philips/ikea gateway
https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices
1 gateway to rule them all

Ha, love it !!
Appreciate all the advice ......I'll let you know how I get on
Get Outlook for Androidhttps://aka.ms/ghei36

From: pergolafabio notifications@github.com
Sent: Wednesday, March 27, 2019 9:39:29 AM
To: lucacalcaterra/risco-mqtt-bridge
Cc: rob1981forest; Author
Subject: Re: [lucacalcaterra/risco-mqtt-bridge] Question: How to get started (#8)
you can use xiaomi gateway, but i dont like those gateways from manufacturer
i prefer generic gateways, that can talk to all brands, so it creates 1 mesh
like philips, xiaomi, ikea, ... they are all supported
i am using de deconz gateway (conbee stick)
https://www.home-assistant.io/components/deconz/
they supported almost everything, and also cheaper then xiamoi/philips/ikea gateway
https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices
1 gateway to rule them all
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/lucacalcaterra/risco-mqtt-bridge/issues/8#issuecomment-477063478, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AsRl0LwKDdBWDGe9jiAqfsstuRfn7VMIks5vazxRgaJpZM4Zyj6K.

Np

Fetch sensor status for trigger lights with Risco Cloud is not a good idea... Unfortunately we cannot get the status in realtime :-(

i emailed risco again for official API yesterday, seems i had wrong email address of technical manager risco benelux
so hope he response now

Ok, thanks for confirming
Get Outlook for Androidhttps://aka.ms/ghei36

From: Luca Calcaterra notifications@github.com
Sent: Wednesday, March 27, 2019 10:40:54 AM
To: lucacalcaterra/risco-mqtt-bridge
Cc: rob1981forest; Author
Subject: Re: [lucacalcaterra/risco-mqtt-bridge] Question: How to get started (#8)
Fetch sensor status for trigger lights with Risco Cloud is not a good idea... Unfortunately we cannot get the status in realtime :-(
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/lucacalcaterra/risco-mqtt-bridge/issues/8#issuecomment-477089602, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AsRl0EQgJVV_wSyMySnAiO25dlXFsx2Gks5va0q2gaJpZM4Zyj6K.

btw, @lucacalcaterra , you still developing this further?
you got a chance to look for the state based on an event instead of the slider on www.riscocloud.com
the event is updated in realtime, so no delay for 4-5 mins

Yes if we could hit it locally over port 1000 that would be good.....the CS from risco shows instant status and any sensor changes through the software so is possible.......risco however are very guarded about it.
Slightly off topic but my lan module always connects in at 10mbps half duplex which I find strange
Get Outlook for Androidhttps://aka.ms/ghei36

From: pergolafabio notifications@github.com
Sent: Wednesday, March 27, 2019 10:42:50 AM
To: lucacalcaterra/risco-mqtt-bridge
Cc: rob1981forest; Author
Subject: Re: [lucacalcaterra/risco-mqtt-bridge] Question: How to get started (#8)
i emailed risco again for official API yesterday, seems i had wrong email address of technical manager risco benelux
so hope he response now
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/lucacalcaterra/risco-mqtt-bridge/issues/8#issuecomment-477090402, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AsRl0O9nhvTzWvl701aCSZsWHyp9fJlqks5va0sqgaJpZM4Zyj6K.

Indeed, but he already tried on local lan, seems data is encrypted

Yes if we could hit it locally over port 1000 that would be good.....the CS from risco shows instant status and any sensor changes through the software so is possible.......risco however are very guarded about it. Slightly off topic but my lan module always connects in at 10mbps half duplex which I find strange Get Outlook for Androidhttps://aka.ms/ghei36
…
________________________________ From: pergolafabio notifications@github.com Sent: Wednesday, March 27, 2019 10:42:50 AM To: lucacalcaterra/risco-mqtt-bridge Cc: rob1981forest; Author Subject: Re: [lucacalcaterra/risco-mqtt-bridge] Question: How to get started (#8) i emailed risco again for official API yesterday, seems i had wrong email address of technical manager risco benelux so hope he response now — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub<#8 (comment)>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AsRl0O9nhvTzWvl701aCSZsWHyp9fJlqks5va0sqgaJpZM4Zyj6K.

https://cybergibbons.com/alarms-2/vulnerability-in-risco-lightsys-protocol-encryption/

btw, @lucacalcaterra , you still developing this further?
you got a chance to look for the state based on an event instead of the slider on www.riscocloud.com
the event is updated in realtime, so no delay for 4-5 mins

Don't understand your request... we can only get state from API... At this moment i've not so much time to spend on it... in the near future i'll check it..

ok, let me explain
look at this screenshot : https://www.dropbox.com/s/8h5jibr0y6197s5/riscoevent.JPG?dl=0
so,, when we arm/disarm from risco panel (NOT app)
we see the security slider changing after x minutes, thats the delay we also see in your APP
but
if you look at the event history, as soon we arm/disarm, instantly the event is there, no delay here..
that "event" we also see in MQTT coming in instant
so if you can change the "state" based on last event instead of the "security overview", then we also see the state instant changing in HA or openhab, we dont have the extreme delay anymore then
i hope this helps?

ok, let me explain
look at this screenshot : https://www.dropbox.com/s/8h5jibr0y6197s5/riscoevent.JPG?dl=0
so,, when we arm/disarm from risco panel (NOT app)
we see the security slider changing after x minutes, thats the delay we also see in your APP
but
if you look at the event history, as soon we arm/disarm, instantly the event is there, no delay here..
that "event" we also see in MQTT coming in instant
so if you can change the "state" based on last event instead of the "security overview", then we also see the state instant changing in HA or openhab, we dont have the extreme delay anymore then
i hope this helps?

Ah ok, get the event from event history... Try to plan to work on it... anyway Risco should update their API's. It's not so good that the arm not sync instantly. I'll  write the support team for this, before work on my project.

can someone make some screenshots how to configure/launch this container in portainer?
i am using now docker on synology, want to go the portainer road :)
i am quite new to all that docker stuff

If you launched the container on docker command line you should se it on
Portainer
Il giorno mer 27 mar 2019 alle ore 20:27 pergolafabio <
notifications@github.com> ha scritto:

can someone make some screenshots how to configure/launch this container
in portainer?
i am using now docker on synology, want to go the portainer road :)
i am quite new to all that docker stuff
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lucacalcaterra/risco-mqtt-bridge/issues/8#issuecomment-477314139,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA1s0WIGsxsuNBjjHaFYsH1yzeZzJC_zks5va8YKgaJpZM4Zyj6K
.

yes , but i am a litte bit stuck on mapping the volumes
https://community-home-assistant-assets.s3.dualstack.us-west-2.amazonaws.com/original/3X/6/c/6c3560ebcb200523cf33b5d492de3bcf76926925.png
in that exampe screenshot, you that they map the container with a host, so i need to map your config.js to a host folder/file
but i dont see "host" in my portainer, i see volume there instead

ah, think i found it, need to press the "bind" button first :)

damn, almost there, just now this error
https://www.dropbox.com/s/xiylzqs8d9v3vs3/errorhost.JPG?dl=0

So this 5 minute delay problem.....say for example I want to turn all my house lights on and make my Logitech harmony play music loud if the alarm goes off (i.e. someone is braking into my house) would that only happen after 5 minutes when things catch up ?
Get Outlook for Androidhttps://aka.ms/ghei36

From: Luca Calcaterra notifications@github.com
Sent: Wednesday, March 27, 2019 11:35:58 AM
To: lucacalcaterra/risco-mqtt-bridge
Cc: rob1981forest; Author
Subject: Re: [lucacalcaterra/risco-mqtt-bridge] Question: How to get started (#8)
ok, let me explain
look at this screenshot : https://www.dropbox.com/s/8h5jibr0y6197s5/riscoevent.JPG?dl=0
so,, when we arm/disarm from risco panel (NOT app)
we see the security slider changing after x minutes, thats the delay we also see in your APP
but
if you look at the event history, as soon we arm/disarm, instantly the event is there, no delay here..
that "event" we also see in MQTT coming in instant
so if you can change the "state" based on last event instead of the "security overview", then we also see the state instant changing in HA or openhab, we dont have the extreme delay anymore then
i hope this helps?
Ah ok, get the event from event history... Try to plan to work on it... anyway Risco should update their API's. It's not so good that the arm not sync instantly. I'll write the support team for this, before work on my project.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/lucacalcaterra/risco-mqtt-bridge/issues/8#issuecomment-477110195, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AsRl0FpIDH8Mq2r3enElHIctApwzgtOSks5va1eegaJpZM4Zyj6K.

no, delay is only when arm/disarm from a risco panel

Ok, that's not too bad then - thanks
Get Outlook for Androidhttps://aka.ms/ghei36

From: pergolafabio notifications@github.com
Sent: Wednesday, March 27, 2019 9:33:00 PM
To: lucacalcaterra/risco-mqtt-bridge
Cc: rob1981forest; Author
Subject: Re: [lucacalcaterra/risco-mqtt-bridge] Question: How to get started (#8)
no, delay is only when arm/disarm from a risco panel
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/lucacalcaterra/risco-mqtt-bridge/issues/8#issuecomment-477355996, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AsRl0N_VsDSUOMfkC53fIZja2LwflkC3ks5va-OMgaJpZM4Zyj6K.

but actually , i have not tested it yet :)

ok, running it now in portainer, found my volume bindings :
/app/config/config.js
/mnt/data/supervisor/homeassistant/risco-mqtt-bridge/config.js
/app/logs
/mnt/data/supervisor/homeassistant/risco-mqtt-bridge/logs
only the logs folder is always empty , i also changed the NODE_ENV to development

@lucacalcaterra , ok, docker on portainer running, latest tag, so I presume bits beta right?
But I don't see any discovery in home assistant like you describe in the readme? No sensors...
Just need to manual configure the alarm panel like before..
Do I still need todo something?

Hello everyone, I'm new to this, I have hassio 0.91.3, I need help to integrate it into hassio and I do not know where to start, will there be someone so kind to help me install in hassio ?. greetings and thanks

Hola a todos, soy nuevo en esto, he hassio 0.91.3, necesito ayuda para integrarlo en hassio y no sé por dónde empezar, ¿habrá alguien tan amable que me ayude a instalar en hassio? saludos y gracias

Hi, everything is in the readme file... What have you tried already?

Hola, todo está en el archivo Léame ... ¿Qué has intentado ya?

hi and thanks for answer,i readed it but i dont know how integrate in hassio,im very new,dont know about all this,only create the mqtt panel alarm,can be intregated like a  addon on hassio or how?thanks

What did you already do? Where are you stuck? We need more details

¿Qué hiciste ya? Donde estas atrapado Necesitamos mas detalles

In fact, I need to know how to start with risco-mqtt-bridge in hassio, how should I do this in hassio?:
After installing Node.js, execute the following steps:
clone the repository with git clone https://github.com/lucacalcaterra/risco-mqtt-bridge.git
cd risco-mqtt-bridge
npm install
in config dir copy the file config-example.js to config.js and fill in your information (follow the Configuration section below)
launch with the app.js node
If you wish, you can use a process manager such as pm2, nodemon, to automatically restart or start the system when you start the application.
in hassio:
I need to do this under putty?
just copy the edited config.js file to my config / hassio directory?
excuse my ignorance

I'm just familiar with working with the addon store, out of there I get lost

Best to start with the docker version of Risco, just configure that one, enable mqtt somewhere, then add the alarm panel as described in your Hass config, that's it

Lo mejor es comenzar con la versión docker de Risco, simplemente configure esa, habilite mqtt en algún lugar, luego agregue el panel de alarma como se describe en su configuración de Hass, eso es todo.

which is that version?sorry

https://hub.docker.com/_/eclipse-mosquitto

im very lost

Just search for Risco-mqtt-bridge, should be only one, the same version as the owner from this github

I'm on that page, but this really surpasses me

thanks for the help and sorry for the inconvenience, I'll have to wait and see if they will be encouraged to create a guide for novices in hassio. Thanks really

no, you need a software like "docker" on synology, or "portainer" on hassio, that software lets you run containers, like the container from this github
read about dockers first on google, so you know what it is and what it can do for you

ok,i must install this addon on hassio first?
https://github.com/hassio-addons/addon-portainer

no, necesitas un software como "docker" en synology o "portainer" en hassio, que te permite ejecutar contenedores, como el contenedor de este github
Lea acerca de los dockers primero en google, para que sepa qué es y qué puede hacer por usted.

i installed portainer addon,i should continue?

yes, but seems portainer 0.6.0 has an issue , seems it doesnt work
maybe install docker as an alternative

sí, pero parece que el portainer 0.6.0 tiene un problema, parece que no funciona,
tal vez instale la ventana acoplable como alternativa

in containers?

it doesnt start on hassio, you cant use it anymore

no se inicia en hassio, ya no puedes usarlo

ah, then you can start deploying your container, now start with with reading the readme file

ah, then you can start deploying your container, now start with with reading the readme file

Run with Docker
You can run it with Docker, without having to install nodes and all of its dependencies. Cannot explain how Docker works in this README but if you know it a little, i give you some short examples... REQUIREMENTS: MQTT Server (You can run also mqtt server with docker in case you don't have it on your host). If you want can build the Docker image with Dockerfile provided in the repo.
Example running MQTT Server and Risco-Mqtt-Bridge with docker
1- Run MQTT container (i.e. Mosquitto container- refer to: https://hub.docker.com/_/eclipse-mosquitto)
2- Copy config.js from the github project, fill your params and run risco-mqtt-bridge container with : docker run --name risco-mqtt-bridge -v {path where copied}/config.js:/app/config/config.js lucacalcaterra/risco-mqtt-bridge You can also mount the logs dir if you want adding the param -v {your path}/logs:/app/logs
BONUS: I created the docker image for ARM also (for running i.e on Raspberry); to use it must append armhf tag when pull image: lucacalcaterra/risco-mqtt-bridge:armhf
Example running MQTT Server and Risco-Mqtt-Bridge with Docker Compose
If you know Docker Compose here is an example of a docker-compose.yml file:
docker-compose.yml:
version: '2.0'
services:
mosquitto:
image: eclipse-mosquitto
container_name: mosquitto
restart: unless-stopped
ports:
- "1883:1883"
- "9001:9001"
#volumes:
# - ./mosquitto/config:/mosquitto/config
# - ./mosquitto/data:/mosquitto/data - /srv/dockerct/mosquitto/log:/mosquitto/log
risco-mqtt-bridge:
image: lucacalcaterra/risco-mqtt-bridge # Append 'armhf' if you run it on ARM Platform
container_name: risco-mqtt-bridge
restart: unless-stopped
#ports: - "3000"
volumes:
- ./config.js:/app/config/config.js
- ./logs:/app/logs
environment:
- NODE_ENV=production

i need to create the image with dockerfile first?

Step 1/12 : FROM node:8-alpine
---> 516f4a377940
Step 2/12 : ARG TZ=Europe/Rome
---> Running in 590ddf464fa9
Removing intermediate container 590ddf464fa9
---> 4e3ef1ff894d
Step 3/12 : RUN apk --no-cache update &&     apk --no-cache upgrade &&     apk --update add 		tzdata 	&& cp /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone 	&& apk del tzdata
---> Running in 3674d7bbecfe
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/armhf/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/armhf/APKINDEX.tar.gz
v3.8.4-32-gafcf91b319 [http://dl-cdn.alpinelinux.org/alpine/v3.8/main]
v3.8.4-23-g3c27aa9aec [http://dl-cdn.alpinelinux.org/alpine/v3.8/community]
OK: 9325 distinct packages available
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/armhf/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/armhf/APKINDEX.tar.gz
OK: 5 MiB in 15 packages
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/armhf/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/armhf/APKINDEX.tar.gz
(1/1) Installing tzdata (2018f-r0)
Executing busybox-1.28.4-r3.trigger
OK: 8 MiB in 16 packages
(1/1) Purging tzdata (2018f-r0)
Executing busybox-1.28.4-r3.trigger
OK: 5 MiB in 15 packages
Removing intermediate container 3674d7bbecfe
---> 696a074884da
Step 4/12 : RUN mkdir -p /app/node_modules && chown -R node:node /app
---> Running in 4e69f128f304
Removing intermediate container 4e69f128f304
---> 9bfc0ac29a1d
Step 5/12 : WORKDIR /app
---> Running in bfb19c2fde36
Removing intermediate container bfb19c2fde36
---> 02fe84e2c8c4
Step 6/12 : COPY package*.json ./
COPY failed: no source files were specified

have you solved ?

Yes,I am enjoying it a few months ago, I am very happy with it, thanks for your work and thanks to pergolafabio for his help and his patience

Hi,
I just have a quick question.
I don't get any files in the logs folder.
I'm using Synology and my path is /volume1/docker/mqtt/logs
my config files /volume1/docker/mqtt/cong, Which is working fine, I can arm and disarm fine with an update status showing the state of the alarm
I have mounted the volume without any errors via ssh when pulling the new image using the following
"docker run --name risco-mqtt-bridge -v /volume1/docker/mqtt/config/config.js:/app/config/config.js -v /volume1/docker/mqtt/logs:/app/logs lucacalcaterra/risco-mqtt-bridge"
any ideas?

Files Permissions ?

Files Permissions ?

I just set the file permission to 777 and now I get 2 log files in the logs folder. Love your work.
Thanks heaps.

authors: lucacalcaterra mrbarbz pergolafabio pollinolas rob1981forest

repo: lucacalcaterra/risco-mqtt-bridge


text:
Version conflicts

Hi, I see this error in VSCode, however it runs fine anyways:
No overload matches this call.
  Overload 1 of 2, '(options: BuildOptions): Promise<BuildResult<BuildOptions>>', gave the following error.
    Type 'import("https://deno.land/x/esbuild@v0.15.10/mod").Plugin' is not assignable to type 'import("https://deno.land/x/esbuild@v0.17.8/mod").Plugin'.
      Types of property 'setup' are incompatible.
        Type '(build: import("https://deno.land/x/esbuild@v0.15.10/mod").PluginBuild) => void | Promise<void>' is not assignable to type '(build: import("https://deno.land/x/esbuild@v0.17.8/mod").PluginBuild) => void | Promise<void>'.
          Types of parameters 'build' and 'build' are incompatible.
            Type 'import("https://deno.land/x/esbuild@v0.17.8/mod").PluginBuild' is not assignable to type 'import("https://deno.land/x/esbuild@v0.15.10/mod").PluginBuild'.
              The types of 'initialOptions.loader' are incompatible between these types.
                Type '{ [ext: string]: import("https://deno.land/x/esbuild@v0.17.8/mod").Loader; } | undefined' is not assignable to type '{ [ext: string]: import("https://deno.land/x/esbuild@v0.15.10/mod").Loader; } | undefined'.
                  Type '{ [ext: string]: import("https://deno.land/x/esbuild@v0.17.8/mod").Loader; }' is not assignable to type '{ [ext: string]: import("https://deno.land/x/esbuild@v0.15.10/mod").Loader; }'.
                    'string' index signatures are incompatible.
                      Type 'import("https://deno.land/x/esbuild@v0.17.8/mod").Loader' is not assignable to type 'import("https://deno.land/x/esbuild@v0.15.10/mod").Loader'.
                        Type '"empty"' is not assignable to type 'Loader'.  Overload 2 of 2, '(options: BuildOptions): Promise<BuildResult<BuildOptions>>', gave the following error.
    Type 'import("https://deno.land/x/esbuild@v0.15.10/mod").Plugin' is not assignable to type 'import("https://deno.land/x/esbuild@v0.17.8/mod").Plugin'.

I'm getting the same error with example given in README:

It does work if I downgrade esbuild to 0.15, but it doesn't with 0.17 as in the README

The README is for a version of esbuild_deno_loader that is not yet released. You can use 0.15.2 instead for now. I'll cut a new release shortly.

authors: Ciantic lucacasonato lviggiani


text:
pip install error under windows

i try to install  pydensecrf under windows , but failed:

python version = 3.5.2
windows 7 and 64 bit
has anyone succeed?

How about doing exactly what the last line tells you to do?

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

If you already did that, then google for this exact error and you will find quite a few trouble-shootings.
I'm closing this as so far it seems to be a problem with your system setup, not a problem with PyDenseCRF. If it turns out otherwise, please feel free to re-open the issue with more information.

authors: lucasb-eyer micklexqg

repo: lucasb-eyer/pydensecrf


text:
Question about theme support at css(sass)

Hi!
-1.This is not problem, just question. I have not found more suitable place to put my questions.
-2.There are theme_image_tag & image_tag to overload an image at theme, but there are also css (sass) with code like this:
"
li
list-style: none
background: url(/images/decorators/square.png) left 2px no-repeat
"
Is any way to select rigth image at css/sass based on current theme? Are you planning to do something to resolve this problem? If yes, what exactly (I will try to help)?
Artem.

To do that, you will have to use the asset pipeline, on rails 3.1 or later, and mixed ruby variables on the sass templates.
Unfortunately, ThemesForRails doesn't work with the new Assets Pipeline. I am still thinking about how to integrate it properly. I did some tests, but I did not like the solution.
If you want, please elaborate a little bit more.

Hello,
Thank you for answer, I will take a look at asset pipeline and understand is it suitable for my requirements or not.
Sincerely yours,
Artem Rufanov
P.S.
Have a good day!

authors: arufanov lucasefe


text:
[BUG] -

How are you bypassing the black screen?

After like 3min the screenshot pra pyautogui is blocked by the battleye

im having te same problem, have tested a lot of things and none of them have worked

repo: lucasmonstrox/PyTibia


text:
Can't visualize the output

Sorry if it seems a silly question, bu I do not know what should I do with the output.
I'm trying to predict the output of frames taken from video and the results are like this
tensor([[ 1.5390e+01,  2.6866e-01,  5.9231e-01, -3.7041e-01,  5.3317e-01,
         -2.5742e-01,  4.1398e-01,  1.5413e+01, -7.1203e-03,  9.4199e-01,
         -5.6711e-01,  2.8064e-01,  8.4359e-02,  4.6005e-01, -2.2299e+01,
          1.8078e-03,  8.2544e-01,  1.4614e-01,  1.0139e-01, -2.6998e-01,
          5.8584e-01, -1.2889e+00,  1.7570e-02,  7.5274e-01,  9.5632e-02,
          7.7286e-02,  3.0168e-01,  3.6816e-01,  5.5416e-01,  7.4196e-02,
          7.2463e-01, -7.6063e-02, -1.3095e-01,  7.5693e-01,  3.2309e-01]],
       grad_fn=<AddmmBackward>)

I tried to draw these points with opencv's polylines but I couldn't.
Can you please tell me how to visualize the output

You can use the --view flag in the test.py script to visualize the predictions. The code used to generate the visualization is here.

authors: lucastabelini pirate-lofy

repo: lucastabelini/PolyLaneNet


text:
Fixes github

Meow... 😸

authors: karsa-mistmere mittalyashu

repo: lucide-icons/lucide

license: ISC


text:
Make program?

Hello, can´t you make program like there is for PermissionsEx? I mean https://www.spigotmc.org/resources/pexbuilder-gui.42248/
What is there good?
Available permissions - you can select and them and transfer them to active permissions.
It looks very cool, beacuse you don´t need find permissions for specific plugin.
Or you can add that to your web interface.

LuckPerms has a graphical editor:

authors: BrainStone renzotom

repo: lucko/LuckPerms


text:
Error while joining

I always get this error while Joining
at sun.reflect.GeneratedConstructorAccessor102.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:931)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4031)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1296)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2338)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:794)
at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)
at sun.reflect.GeneratedConstructorAccessor68.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:375)
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:204)
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:459)
at com.zaxxer.hikari.pool.HikariPool.access$200(HikariPool.java:70)
at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.java:696)
at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.java:682)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
... 3 more

Try updating to the latest version of LuckPerms.
https://ci.lucko.me/job/LuckPerms/

i have the latest version

No you don't.
Please download the latest version from the link above.

ok Thank You for the great Support

authors: joeymaeuslp lucko


text:
Download Progress

I am having a look into this repository, and I will definitely try my best to add a progress bar for downloads. Thanks.

Thank you! Will be very helpful

@luisflorido I have added the Progress bar, although I have not added the functioning and visuals because the main window has no place to show the progress bar. Firstly, I think it's better to add a status bar then add the rest of the items.

This weekend I'll look into that, thank you man!

I used your PR and finished the functionality, thank you!

authors: ArchismanKarmakar luisflorido

repo: luisflorido/wallhaven-desktop


text:
CSS

CSS
User story
As a boot camp student
I want the prework notes to be structured on a webpage
So that I can easily find and read the information
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I view the study guide
THEN I see a dark blue header and footer, and four boxes with a shadow

This is solved and PR complete


text:
A matcher for all routes with a path parameter

I'm trying to define a route that matches everything, but also passes the path as a param to its annotated function. For example:

/: path = ""
/foo: path = "foo"
/foo/bar: path = "foo/bar"

I tried the following, and it works for sub-paths, but fails on root /.
@app.Route("/:path*", responseType: "text/html", matchSubPaths: true)
String all(String path) => "Hello World";

Is this possible with Redstone?

What are you trying to accomplish? An Interceptor or route decorator plugin might what you need.

I'm trying to write an isomorphic Dart app using React. I'd like Redstone to respond to any path, and pass the path into a React component which will handle the routing.

How about
@app.Route ('*', matchSubPaths: true)
anyPath () => app.request.url;

That works, but I also need access to the path in order to pass it into my server-side React component which is handling the routing. I tried the following, but I get a 404:
@app.Route (':path*', matchSubPaths: true)
anyPath(String path) => app.request.url;

Is this enough?
@app.Route ('*', matchSubPaths: true)
anyPath()
{
    var path = app.request.url;
    //Do something with path
}

The url IS the path.
ᐧ

The following example works fine in v0.6.0-beta.1
import 'redstone/redstone.dart';

@Route(":path*", responseType: "text/html")
String all(String path) => path;

Sorry @cgarciae, I overlooked app.request.url. I'll give that and v0.6.0 beta a try.

authors: cgarciae danschultz luizmineo


text:
Cannot resolve scoped service 'FluentEmail.Core.Interfaces.ISender' from root provider.

I have .NET Core 2.1.2 application with IHostedService for sending email notifications.
I register an email sending stuff:
    public class NotificationsFactory
    {
        public static void Register(IServiceCollection services, IAppSettings appSettings)
        {
            var client = new SmtpClient
            {
                Host = appSettings.EmailServerHost,
                Port = appSettings.EmailServerPort,
                UseDefaultCredentials = false,
                Credentials = new NetworkCredential(appSettings.EmailUser, appSettings.EmailPassword)
            };

            services
                .AddFluentEmail(appSettings.EmailFrom)
                .AddSmtpSender(client);

            services.AddSingleton<IEmailNotificationProvider, EmailNotificationProvider>();
        }
    }

then inject IFluentEmailFactory in my EmailNotificationProvider
public class EmailNotificationProvider : IEmailNotificationProvider
    {
        private readonly IFluentEmailFactory _emailFactory;

        public EmailNotificationProvider(IFluentEmailFactory emailFactory)
        {
            _emailFactory = emailFactory;
        }

        public async Task<bool> SendAsync(IOrder order)
        {
            try
            {
                var body = "Test body";

                await _emailFactory.Create()
                    .To(order.Company?.Email, "User")
                    .Subject($"New Order #{order.OrderId}")
                    .Body(body, true)
                    .SetFrom("email@email.com", "Service")
                    .SendAsync();

                return true;
            }
            catch (Exception e)
            {
                return false;
            }
        }
    }

but get an error "Cannot resolve scoped service 'FluentEmail.Core.Interfaces.ISender' from root provider." when creating new FluentEmail from factory.
What am I doing wrong?

#172

I've the same error in
services.AddMailGunSender(mailgunApiDomain.Value, mailgunApiKey.Value);
and
services.AddSingleton<ISender>(x => new MailgunSender(mailgunApiDomain.Value, mailgunApiKey.Value));  did not solved my problem.

The problem is that IFluentEmail and IFluentEmailFactory cannot be injected in the constructor because when you use the provided AddFluentEmail() helper it creates the services as transient services instead of singleton services. Only singleton services can be injected through the constructor.
You can either manually add the service as a singleton (as mentioned above) or you can use the built methods and manually create a scope using the automatically injected IServiceProvider and explicitly request a dependency injection inside the created scope:
public class Worker : BackgroundService
{
    private readonly ILogger<Worker> _logger;
    private readonly IServiceProvider _serviceProvider;

    public Worker(ILogger<Worker> logger, IServiceProvider serviceProvider)
    {
        _logger = logger;
        _serviceProvider = serviceProvider;
    }

    protected override async Task ExecuteAsync(CancellationToken stoppingToken)
    {
        using (var scope = _serviceProvider.CreateScope())
        {
            var response = await scope.ServiceProvider.GetRequiredService<IFluentEmail>()
                .To("test@example.com")
                .Subject(DateTime.Now.ToLongTimeString())
                .Body("test")
                .SendAsync(stoppingToken);
        }
    }
}

After 5 years since this was reported, i am facing this issue in .Net 8 project by the below lines of code usage from my backgroundService template app.
var smtpServer = configuration.GetSection("EmailSettings:Host").Value;
int.TryParse(configuration.GetSection("EmailSettings:Port").Value, out int smtpPort);
var mailFrom = configuration.GetSection("EmailSettings:From").Value;
var smtpUser = configuration.GetSection("EmailSettings:SmtpUsername").Value;
var smtpPwd = configuration.GetSection("EmailSettings:SmtpSecret").Value;
bool.TryParse(configuration.GetSection("EmailSettings:UseSslTls").Value, out bool useSslTls);

var smtpClient = new SmtpClientOptions()
{
    Server = smtpServer,
    Port = smtpPort,
    UseSsl = useSslTls,
    RequiresAuthentication = true,
    User = smtpUser,
    Password = smtpPwd,
    SocketOptions = useSslTls ? MailKit.Security.SecureSocketOptions.StartTls : MailKit.Security.SecureSocketOptions.Auto
};

services
    .AddFluentEmail(mailFrom)
    .AddMailKitSender(smtpClient);

While the above comment from @belidzs has a suggestion to use scope within the usage or other solutions, but i'd expect the popular library should have a fix for this, isnt it?

authors: aravindk777 belidzs caglardursun mihaj okolobaxa

repo: lukencode/FluentEmail


text:
linqpad@6.3: hash check failed

ErrorMessage
  Installing 'linqpad' (6.3) [64bit]
LINQPad6.zip (25.8 MB) [======================================================================================] 100%
Checking hash of LINQPad6.zip ... ERROR Hash check failed!
App:         extras/linqpad
URL:         http://download.linqpad.net/public/LINQPad6.zip
First bytes: 50 4B 03 04 14 00 00 00
Expected:    d9995e26e11faa9f03c1916d7a0382f59055c8aeef318abe8b783a47f24e458f
Actual:      78ae277876f48e594fe4a3ecc8145a29d7ff8439fe43dcf2af537871961aee72

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/lukesampson/scoop-extras/issues/new?title=linqpad%406.3%3a+hash+check+failed

temporary fix:
scoop install https://gist.githubusercontent.com/guitarrapc/2fbf641
d56377feb04765c881e568f3e/raw/d0542e86016c9b56df7a14d8d7f7d530b02fa84a/linqpad.json

I created a pull request Here to fix the hashes

authors: guitarrapc outforpublic

repo: lukesampson/scoop-extras

license: Unlicense


text:
virt-viewer: add 10.0-1.0

Virt-viewer is an open source tool to connect to virtual machines. It can connect to VNC or SPICE, and uses libvirt to lookup the graphical connection details. It's release page provides windows msi packages: https://virt-manager.org/download/
I had made an issue request: https://github.com/lukesampson/scoop-extras/issues/5001 then I write the manifest myself.

Hi @Ash258  I noticed the AppVeyor build failed is caused by "First-time contributors need a maintainer to approve running workflows." Could any maintainer review and if there is no problem then merge it?

Why do you lie?

Oh! I just noticed the build failed reason after you have posted the picture. I did not lie. The github message confused me, it says "first-time contributors need a maintainer to approve running workflows" right above the build failed message. This lead me to believe the build failed reason is "first-time contributors need a maintainer to approve running workflows". I didn't checked the details. Only after you posted the picture I realized I need to click the details to see the reason caused the build failure.
I have fixed the json files issues and now it build ok.

If you are unable to determine the directory to be extracted (through version string), you should move all the files to the root in a post_install script.

Hi @rashil2000, do you mean I should move all the files to the C:\Users\username\scoop\apps\virt-viewer folder? I tried add a post_install script like this "post_install": "Move-Item \"$original_dir\\*\" \"$original_dir\\..\"". But the shortcut and bin still point to its current folder C:\Users\username\scoop\apps\virt-viewer\current\bin\remote-viewer.exe.
I also tried to search for examples https://github.com/ScoopInstaller/Extras/search?q=post_install+Move-Item. But I can't find cases like this. What to do? Is there any examples?

Sorry, I meant to say pre_install. I'll make the change.


text:
Allow non-interactive command to generate keys and mnemonic.

Command: new-mnemonic

Add option --mnemonic-file in order to store the mnemonic in file + Disable confirmation

ex: ./deposit.sh --language English new-mnemonic --num_validators 1 --mnemonic_language English --chain lukso --keystore_password password  --mnemonic_file seed.txt
Command: existing-mnemonic

Disable 2nd confirmation of validator_start_index (show even if the option is set)

ex: ./deposit.sh --language English existing-mnemonic --num_validators 1 --chain lukso  --validator_start_index 0 --keystore_password password --mnemonic="$(cat seed.txt)"

We will hold off on this, as we will first upstream merge the changes from ethereum, before proceeding with adding any features

authors: frozeman percenuage

repo: lukso-network/tools-key-gen-cli


text:
主题打不开，报错

是不是哪里调用函数错了？还是版本问题？
报错信息为：
Call to a member function format() on null

您的邮件已收到，我将会在三周内对有需要回复的邮件进行回复，请耐心等候，如三周内未收到回信，可重复发送该邮件

你好，感谢你贡献了这个问题。
经过一段时间的排查，发现问题主要是由/component/topPosts.php文件引起的，分别发生在第11、14、18行等位置。
该问题主要是由于当初次切换至Ayakin主题后，没有在设置项中为置顶文章填入内容，导致主题在获取置顶文章时接收到了NULL值，继而让主题后续操作无法正常完成，从而意外中断了系统运行并抛出了此错误。
同时，在修复此问题的过程中，我们也发现了诸如header.php、index.php等文件的某些位置存在着类似的安全隐患，后续已为这些位置的代码上下文加入了非空判断保护，保证主题在没有获取到置顶文章时不会执行相关代码。
相关问题现已成功修复并更新至该Github仓库，经多次测试，并不会影响主题原本功能，你可以将/usr目录下的Ayakin文件夹整个删除，而后重新下载主题资源文件到同目录下，按照Typecho主题安装方法正常重装主题，并在网站后台启用Ayakin主题即可。
再次感谢你对代码改进做的贡献，如果有任何后续问题，可随时提Issue寻求帮助。

是的呢，我也没想到会有这个问题，因为演示站一直都能运行，发布前也没来得及做太多细致的测试，感谢提出这个问题~

authors: Violetmail lumirant

repo: lumirant/Ayakin-Theme