Comments (3)
What kind of image is it? Is it accessible in a browser? The example you provided has invalid syntax and the priority must be an integer. E.g. this example works for me:
{
"title": "Title",
"message": "![Info](https://placebear.com/400/300)",
"priority": 5,
"extras": {
"client::display": {
"contentType": "text/markdown"
},
"client::notification": {
"bigImageUrl": "https://placebear.com/400/300"
}
}
}
from server.
Per our discussion on Element:
Hi, this is a setup for Blueiris. The images in the "message" and "bigimageurl" are accessible from a web browser.
the image format is .jpg
Confirming that the provided layout was exactly what I needed and resolved my issue. Thank you so much for your help!
from server.
Here's the final version of the script in case anyone else wants to do similar. It was definitely a pain since Blueiris has it own set of variables which made it so I couldn't just script in powershell and be done. Otherwise BIs variables wouldn't work.
- I had to create an alert action set to write to file -- powershell extension (.ps1) - (overwrite) with the code below pasted in.
- Another action set to send the photo to the web server I use to so that it's accessible without requiring logging in to blueiris,
- And a final alert action set to run the .ps1 powershell file from step 1 using powershell 7
A kind of messy solution I'm sure, but I'm over it after struggling with it for the last couple days lol
$TITLE="&CAM &MEMO"
$MESSAGE="![Blueiris](https://url/&ALERT_PATH)"
$IMG="https://url/&ALERT_PATH"
$URL="https://url/message?token=<token>"
$Priority="5"
$json = '{
"title": "'+$Title+'",
"message": "'+$MESSAGE+'",
"priority": '+$Priority+',
"extras": {
"client::display": {
"contentType": "text/markdown"
},
"client::notification": {
"bigImageUrl": "'+$IMG+'"
}
}
}'
curl.exe $URL --header 'Content-Type: application/json' --data-raw $json
from server.
Related Issues (20)
- Removal of disabled flag on Refresh button
- Can't get Apache 2.4.38 proxy with sub path to upgrade to websocket HOT 13
- Cannot login behind Traefik, but ip:port works fine HOT 4
- Unable to Login with default credentials HOT 4
- Accept priority as string HOT 7
- Is it Possible to Only Use a URL to Forward Messages? HOT 2
- 401 when logging in via Caddy, but ip:port works HOT 8
- Use gotify as 2FA with messages extras HOT 1
- Configure app graylog to use gotify for notifcations HOT 5
- Filter by Message HOT 1
- Websocket stream per application HOT 1
- Support for X-Forwarded-Prefix HOT 2
- Android App Notification: Could not connect / Bad Request HOT 7
- curl syntax to verify application token HOT 3
- Plugins messages not displayed upon refresh of the message page, nor can they be deleted HOT 4
- Copy to clipboard not working with http HOT 1
- how about a new release? HOT 2
- [Enhancement]: Logging to show login attempts HOT 1
- Creating user specific applications and clients through the api HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.