LinuxDo 新帖推送
179 subscribers
249K photos
310K links
Download Telegram
标题: HOHAI公益站新增Claude Think,欢迎佬友使用
作者: #hohai
板块: #开发调优
编号: 827602
帖子: https://linux.do/t/topic/827602
时间: 2025-07-30 18:06:53
摘要:
HOHAI公益站新增Claude Think( claude-sonnet-4-20250514-think)欢迎佬友来用
网站:https://hohai.eu.org
目前支持模型(网站内鼠标放到模型上就能看到完整的模型名称):
标题: esphome红外信号求助
作者: #liuweiqing
板块: #开发调优
编号: 827603
帖子: https://linux.do/t/topic/827603
时间: 2025-07-30 18:07:50
摘要:
用红外发射器模拟遥控器信号
使用同一个红外接收器, 这个遥控器和我发射器的信号看上去是一样的但是设备无响应
测试红外接收器的时候,遥控器的信号分成两个码发送
我感觉现在唯一的区别就是他两个码之间的间隔不一样
代码:

esphome:
name: bmp_aht_esp32c3
friendly_name: 红外遥控, 温湿度大气压强传感器节点

esp32:
board: airm2m_core_esp32c3
framework:
type: arduino
logger:
level: DEBUG
logs:
remote_receiver: DEBUG
remote_transmitter: DEBUG

api:

ota:
platform: esphome

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password

remote_transmitter:
pin: GPIO19
carrier_duty_percent: 50%
id: my_transmitter

remote_receiver:
pin:
number: GPIO1
inverted: true
dump: raw
id: my_receiver
# tolerance: 50%
# buffer_size: 10kb
# filter: 250us
# idle: 4ms

i2c:
sda: 4
scl: 5
scan: true
id: bus_a

sensor:
# AHT20 Temperature and Humidity Sensor (Fixed address 0x38)
- platform: aht10
temperature:
name: "AHT20 Temperature"
id: room_temperature
humidity:
name: "AHT20 Humidity"
update_interval: 60s

# BMP280 Pressure Sensor
- platform: bmp280_i2c
temperature:
name: "BMP280 Temperature"
pressure:
name: "BMP280 Pressure"
address: 0x77
i2c_id: bus_a
update_interval: 60s

# climate:
# - platform: gree
# name: Gree Air Conditioner
# model: yac1fb9
# transmitter_id: my_transmitter
# sensor: room_temperature
# min_temperature: 16 °C
# max_temperature: 30 °C

switch:
- platform: template
name: "TECO AC Power"
id: teco_ac_power
optimistic: true
turn_on_action:
- remote_transmitter.transmit_raw:
carrier_frequency: 38kHz
code: [
9000, -4494, 636, -1682, 578, -584, 638, -552, 638, -1680, 578, -584, 638, -552, 638, -1678, 578, -584, 638, -552, 638, -1680, 578, -1712, 578, -1710, 578, -584, 638, -552, 638, -550, 638, -550, 638, -550, 638, -550, 638, -552, 638, -552, 638, -550, 638, -1678, 578, -584, 638, -552, 638, -550, 638, -550, 638, -550, 638, -552, 638, -1680, 578, -584, 638, -1678, 578, -582, 638, -552, 638, -1678, 580, -582, 638]
- delay: 300ms
- remote_transmitter.transmit_raw:
carrier_frequency: 38kHz
code: [
9000, -4500, 606, -1712, 578, -582, 638, -552, 638, -1678, 578, -584, 638, -550, 638, -1678, 578, -582, 638, -552, 638, -1680, 578, -1712, 578, -1712, 578, -584, 638, -552, 638, -552, 638, -552, 638, -550, 638, -552, 638, -550, 636, -552, 638, -552, 638, -1678, 578, -584, 638, -550, 638, -550, 638, -552, 638, -550, 638, -550, 638, -1678, 580, -1710, 578, -1710, 578, -584, 636, -552, 638, -1678, 578, -584, 638
]

turn_off_action:
- remote_transmitter.transmit_raw:
carrier_frequency: 38kHz
code: [
9002, -4494, 610, -1708, 578, -584, 606, -584, 606, -584, 604, -586, 604, -584, 604, -1710, 580, -610, 578, -590, 600, -1710, 580, -1710, 580, -1686, 602, -610, 578, -584, 604, -582, 606, -586, 604, -584, 606, -612, 578, -586, 604, -584, 604, -582, 608, -1708, 580, -584, 606, -586, 604, -584, 604, -584, 608, -582, 606, -582, 606, -1710, 580, -586, 604, -1708, 580, -584, 606, -584, 606, -1710, 578, -586, 602
]

- delay: 100ms
- remote_transmitter.transmit_raw:
carrier_frequency: 38kHz
code: [
8998, -4500, 606, -1710, 578, -588, 602, -586, 602, -612, 574, -588, 602, -586, 604, -1712, 576, -588, 602, -588, 600, -1714, 576, -1712, 576, -1712, 576, -614, 574, -588, 604, -586, 580, -610, 580, -610, 602, -588, 602, -588, 578, -608, 602, -588, 602, -1710, 556, -608, 602, -588, 602, -614, 574, -588, 602, -588, 580, -610, 602, -1712, 578, -1712, 554, -1736, 576, -608, 580, -588, 600, -1714, 576, -588, 602
]

遥控器原始信号:
信号 #1 - 协议: TECO, 数据: 0x250200E49, 位数: 35
原始数据 (74): 9002, -4496, 606, -1712, 578, -582, 608, -582, 606, -1712, 576, -582, 606, -582, 608, -1684, 604, -582, 614, -580, 604,
标题: AI制作兵马俑骑单车视频教程,轻松爆款引流+快速变现
作者: #初见是十三
板块: #资源荟萃
编号: 827607
帖子: https://linux.do/t/topic/827607
时间: 2025-07-30 18:10:27
摘要:
我用夸克网盘分享了「AI制作兵马俑骑单车视频教程,轻松爆款引流+快速变现」,点击链接即可保存。打开「夸克APP」,无需下载在线播放视频,畅享原画5倍速,支持电视投屏。
链接:夸克网盘分享
标题: 问一下佬友,目前有没有能够极高的提高api调度稳定性的项目推荐?目前所有的功能模块都是手搓的
作者: #0vo
板块: #开发调优
编号: 827609
帖子: https://linux.do/t/topic/827609
时间: 2025-07-30 18:10:57
摘要:
求各位佬友推荐好的解决方式
标题: cursor有没有什么性价比高的模型
作者: #creepebucket
板块: #开发调优
编号: 827611
帖子: https://linux.do/t/topic/827611
时间: 2025-07-30 18:11:23
摘要:
这几天高强度用了一下cursor, 然后没注意看定价, 用的clause4sonnet, 一天烧了100块 
看到cursor的模型列表里有dsr1和kimi k2这种国内模型, 寻思国内的是不是定价低一些, 性价比高一些
btw话说cursor还有自定义apikey功能, 好用吗
标题: 生活中那些微不足道却能治愈你的小事
作者: #qqqricis
板块: #搞七捻三
编号: 827612
帖子: https://linux.do/t/topic/827612
时间: 2025-07-30 18:11:28
摘要:
佬们,下班前的摸鱼时间又到了,生活中那些微不足道却能治愈你的小事!
快说出来治愈一下加班人受伤的心灵/(ㄒoㄒ)/~~
标题: 作为新佬友的第一个水贴
作者: #gafish
板块: #搞七捻三
编号: 827615
帖子: https://linux.do/t/topic/827615
时间: 2025-07-30 18:12:30
摘要:
混迹国内各种社区二十多年,算得上骨灰级资深灌水人了,初次来到L站,感觉这里氛围真不错,有点当年社区横行年代的风格,第一个贴子必须先发个水贴,以作纪念。
标题: oracle 考试为什么进不去
作者: #sakurajiamai
板块: #搞七捻三
编号: 827618
帖子: https://linux.do/t/topic/827618
时间: 2025-07-30 18:13:18
摘要:
Oracle考试下载了个浏览器插件一直卡在哪进不去,无法签到
标题: Windows 10多用户,为什么科学上网用tun模式每次都要重新加载防火墙规则?
作者: #root
板块: #开发调优
编号: 827622
帖子: https://linux.do/t/topic/827622
时间: 2025-07-30 18:15:00
摘要:
发现clah for windows只要使用TUN模式,每次都要重新加载防火墙规则(点击CFW里的哪个盾牌图标)。觉得很奇怪,譬如我在用户1里操作了可以科学上网了,注销并登入用户2又得重新来一遍才能科学上网。我用的tun模式是system,有人知道怎么解决吗?
标题: 网络小说大纲模板+各种素材合集,适合各类型小说
作者: #π皇
板块: #资源荟萃
编号: 827626
帖子: https://linux.do/t/topic/827626
时间: 2025-07-30 18:16:54
摘要:
⇔⇔⇔⇔⇔ 下载链接 ⇔⇔⇔⇔⇔



pan.quark.cn





夸克网盘分享

夸克网盘是夸克推出的一款云服务产品,功能包括云存储、高清看剧、文件在线解压、PDF一键转换等。通过夸克网盘可随时随地管理和使用照片、文档、手机资料,目前支持Android、iOS、PC、iPad。












⇔⇔⇔⇔⇔ 更多热帖 ⇔⇔⇔⇔⇔
π皇的作品集
标题: 有无支持自定义信源 的 AI 搜索引擎
作者: #阿良 - github.com/glidea/zenfeed
板块: #搞七捻三
编号: 827627
帖子: https://linux.do/t/topic/827627
时间: 2025-07-30 18:17:40
摘要:
比如指定搜索 L 站,v2ex
标题: 【福利再再加码--下班人福利】再次限量开放20人,下班前的狂欢!(6.30下班)
作者: #Master2
板块: #福利羊毛
编号: 827639
帖子: https://linux.do/t/topic/827639
时间: 2025-07-30 18:23:07
摘要:
数量有限,先到先得!
不要私聊我去要优惠码了,多注意L站的消息就行
工单不要提了,不会回复的(心累)
祝大家下班快乐
原贴:
【福利发放-发放完结】蒲公英免费机场,备用服务套餐(优惠卷减免金额)限量发放100人 - 福利羊毛 - LINUX DO
标题: 记一次AI跑团,太好玩啦
作者: #QianJueOnline
板块: #搞七捻三
编号: 827648
帖子: https://linux.do/t/topic/827648
时间: 2025-07-30 18:25:48
摘要:
Gemini跑团真有意思
标题: 为你的博客添加一个简约启动页
作者: #hubiao
板块: #开发调优
编号: 827654
帖子: https://linux.do/t/topic/827654
时间: 2025-07-30 18:28:35
摘要:
代码
css
/* 防止开屏动画期间页面滚动和主内容闪烁 */
body.splash-active {
overflow: hidden;
}

/*
* 当 JS 移除 body.splash-active 类后,主内容区会平滑淡入。
* 请确保 '.index-container' 是您首页主内容区域的正确选择器。
*/
body.splash-active .index-container {
opacity: 0;
transition: opacity 0.8s ease-in-out;
}

/* 开屏动画容器 */
.splash-screen {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
width: 100vw;
position: fixed;
top: 0;
left: 0;
z-index: 9999;
background-color: #121212;
transition: background-color 1.5s cubic-bezier(0.7, 0, 0.3, 1);
/* 性能优化 */
will-change: background-color;
transform: translateZ(0); /* 启用硬件加速 */
backface-visibility: hidden;
}

/* 颜色反转时的状态 */
.splash-screen.invert-colors {
background-color: #ffffff;
}

.logo-text {
/* 优化字体栈:优先使用系统字体,确保快速加载和国内可访问性 */
font-family: "Times New Roman", "Songti SC", "SimSun", "serif", "STSong", "华文宋体", "宋体", serif;
font-weight: 500;
display: flex;
align-items: center;
font-size: clamp(40px, 12vw, 110px);
transition: opacity 0.8s ease-out, transform 0.8s ease-out;
/* 添加字体渲染优化 */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}

/* Logo 退场状态 */
.logo-text.hidden {
opacity: 0;
transform: translateY(-60px);
}

.logo-word {
display: flex;
}

.logo-word + .logo-word {
margin-left: clamp(15px, 4vw, 40px);
}

.char-container {
display: inline-block;
overflow: hidden;
vertical-align: bottom;
}

.logo-text span {
display: block;
transform: translateY(110%);
animation: reveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
color: #f0f0f0;
transition: color 1.5s cubic-bezier(0.7, 0, 0.3, 1);
/* 性能优化 */
will-change: transform, color;
transform: translateY(110%) translateZ(0); /* 硬件加速 */
}

/* 颜色反转时,字体颜色同步变化 */
.splash-screen.invert-colors .logo-text span {
color: #1a1a1a;
}

@keyframes reveal {
to { transform: translateY(0); }
}

/* 为 "Aoguxin Blog" 11个字母编排延迟 */
.logo-text .char1 { animation-delay: 0.2s; }
.logo-text .char2 { animation-delay: 0.3s; }
.logo-text .char3 { animation-delay: 0.4s; }
.logo-text .char4 { animation-delay: 0.5s; }
.logo-text .char5 { animation-delay: 0.6s; }
.logo-text .char6 { animation-delay: 0.7s; }
.logo-text .char7 { animation-delay: 0.8s; }
.logo-text .char8 { animation-delay: 0.9s; }
.logo-text .char9 { animation-delay: 1.0s; }
.logo-text .char10 { animation-delay: 1.1s; }
.logo-text .char11 { animation-delay: 1.2s; }


/* 移动设备优化 - 简化动画以提升性能 */
@media (max-width: 768px) {
.logo-text {
font-size: clamp(32px, 10vw, 80px);
}

/* 在小屏幕设备上减少动画复杂度 */
.logo-text span {
animation-duration: 1.0s;
}
}

/* 低性能设备优化 - 减少动画效果 */
@media (prefers-reduced-motion: reduce) {
.logo-text span {
animation: none;
transform: translateY(0);
}

.splash-screen {
transition: none;
}

.logo-text {
transition: none;
}
}

接下来就是javascript
/**
* 开屏动画控制脚本 (优化版)
* 功能:
* 1. 只在首页显示
* 2. 使用sessionStorage确保同一会话中只显示一次
* 3. 优化渲染时序,防止主内容闪烁
* 4. 优化性能检测,兼容移动设备
* 5. 健壮的错误处理
*/

(function() {
'use strict';

// 性能优化:如果设备性能较差,跳过动画
function isLowPerformanceDevice() {
// 检查设备内存(如果可用)
if (navigator.deviceMemory && navigator.deviceMemory < 2) {
console.log('跳过开屏动画:检测到低性能设备');
return true;
}

// 检查连接速度(如果可用)
if (navigator.connection && navigator.connection.effectiveType) {
const slowConnections = ['slow-2g', '2g'];
if (slowConnections.includes(navigator.connection.effectiveType)) {
console.log('跳过开屏动画:检测到慢速网络');
return true;
}
}

// [已修复] 不再将所有移动设备都视为低性能设备
return false;
}

// 检查是否为首页
funct